how to display a path built from a specific relationship between 2 nodes, and specify the number of hops.
Example:
I want only paths with 3 * [r] or more. It should return A, B, C, D, but not E, F, G, H
(A)-[r]-(B)-[r]-(C)-[r]-(D)
(E)-[r]-(F)-[r]-(G)
(F)-[r]-(H)
this is working, but I have other much complicated graphs, where it didn't work... I need to understand why.
Your variable length search is specifying one to three hops. If you want three or more hops, then you need to use *3..
instead of *3
1 Like