Neo4j Cypher : No of Relations for Each Node -
what cypher find no of edges/relationships of each user/node ? want return count each user.
the fastest way, uses node.getdegree internally.
you can separate rel-pattern direction , relationship-type.
match (n:user) return n, size((n)--()) degree
Comments
Post a Comment