Skip to content

Instantly share code, notes, and snippets.

@CliffordAnderson
Last active December 15, 2015 00:09
Show Gist options
  • Save CliffordAnderson/5171087 to your computer and use it in GitHub Desktop.
Save CliffordAnderson/5171087 to your computer and use it in GitHub Desktop.
A sample cypher query for Neo4J using the DrWho dataset
START a=node(1) // "Doctor"
MATCH (a)-[:ALLY_OF]->(b)-[:ENEMY_OF]->(a)
RETURN a,b
@CliffordAnderson
Copy link
Author

Unfortunately, I don't know Dr. Who well enough to understand why the "Judoon" and the "Silurian" get returned by this query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment