I have a graph as below. The purple color nodes(11376 & 11394) are my root nodes i.e., my graph starts from there.
Now I wanted to write a cypher query such a way that i should get complete path for node 11376 i.e., from start node to end node (purple to yellow) . Also when i say node 11376 I should not get other node 11394. How can i do it.
I tried the below query but did not get the desired output:
match (hh{id:'11376'})-[*0..2]-(n) return n;
It is giving other node as well i.e., 11394
Below is the neo4j grapg:
So if i write cypher match query for node 11376, i should get the complete below path , as below.
How can i do it ?
Thanks