I got a graph with circular type relationship. So there may have two different direction relationships (outgoing and incoming) between each node in my graph. I am trying to find the path between two nodes without using shortestpath()
. How to give the condition to set only 1 relationship will show between each node in the path? Here is my query:
Match p = (A)-[r*]-(b) return p
What should I write for where part?