Cypher查询没有关系的节点

match(n:Label) where not((n)-[]-()) return n

match(n:Label1) where not((n)-[:RELATIONSHIP]-(:Label2)) return n

match (n) where size((n)--())=0 return n

size((n)-->()-->())
Count the paths matching the pattern.

你可能感兴趣的:(Cypher查询没有关系的节点)