Hi,
What is the most efficient way to match all path that contains node with label a, b or c but which can contains other type of nodes.
For example :
a -> b -> c must be matched
a -> b -> d -> c must be matched
a -> b -> d no match
a -> b no match
Any idea ?
I did it with with
MATCH (a)
WHERE exist((a)-->(b)) and exist((a)-->(c))