1
votes

I have multiple nodes and many different relationship between 2 nodes ie the start node and end node. I want to find all the possible path between a start node and end node in neo4j using cypher query language

1

1 Answers

1
votes

I think you'll find the MATCH documentation helpful here, especially variable-length relationships.

An example:

MATCH path = (start:Label1{id:12345})-[*]-(end:Label2{id:67890})
RETURN path

Be aware that highly connected graphs may have trouble if you do not add an upper limit to the size of the paths.