If you were doing this in a single traversal, every time you encountered a
node type C, you would have to ask for all it's relationships and dig inside
the end node of those relationships to see if any of them have a property
type for node B.  

In two traversals, you'd get an array of all the Cs that are connected to
Bs, then all the Cs that are connected to As but not in that first array of
Cs.  Both of these don't feel right at all.  Maybe if you could tell us more
about your model we can tweak it.  

Do the relationships really have to be the same type?

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/cypher-question-subqueries-possible-tp3543685p3543858.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to