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.
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.