How do you want them to be returned. Is this good enough? MATCH (root:Customer)-[r*]->(child) WHERE root.id = {custId} AND NOT type(r) IN ["exception1", "exception2", "exception3"] RETURN *
Wes On Mon, Dec 23, 2013 at 1:40 PM, Christopher Hydak <chy...@identropy.com>wrote: > My graph is constructed with separate trees, which indicate customers. > Almost all nodes and relationships under that customer should not connect > to anything outside of the tree. Other than recursively calling neo4j for > each node in the tree, is there a good cypher query to find the nodes and > relationships under the tree starting at the root of the tree? The depth > is unknown at this time, but can be (for now) assumed to be < 15. There > are about 120 relationship types, and these are variable, so we can't > explicitly list those. There are some (like 3 exceptions) that I would > like to exclude based upon the relationship name. > > Thanks, > Christopher > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.