I'm trying to find all relations between node a and node b, and the relations could be multi-directions. For example, a <- c -> b or a -> d -> b where c and d are nodes.
I've tried MATCH (a:PERSON {name: 'WD'})-[r*..3]-(b:PERSON{name: 'EK'}) RETURN r, a, b
, but I got two isolated nodes, because the relation between a and b is: a <- c -> b.
Any help would be appreciated.
r
you should have gotten would have been a list of relationships (since you used a variable-length relationship pattern). – cybersam