I have a situation where I am looking for paths of the form (:A|B)-[:REL]->(A|B)-[:REL]-> ... -[:REL]->(A|B).
That is, the paths go through nodes with label A or B.
Specifically, if the path is only A nodes, then it can be included in the result set....