Created
February 22, 2014 23:23
-
-
Save ngopal/9163968 to your computer and use it in GitHub Desktop.
a simple cypher query to find all of the shortest paths in the neo4j shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
START source=node(10), destination=node(144) | |
MATCH p = allShortestPaths(source-[r:interacts*..3]->destination) | |
RETURN NODES(p); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment