I currently have a query of these style:
MATCH (a:NodeA { `value`: 9 })
MATCH (b:NodeB { `othervalue`: 45 })
WITH a,b
MATCH p = ()-[*1..5]-() WHERE (a in nodes(p) OR b in nodes(p))
RETURN DISTINCT(p)
The idea is to return all the different graphs i...