The maximum length of a path between the leaf nodes of the root node statistics Neo4J

MATCH p=(root)-[*]->(leaf)
WHERE NOT ()-->(root) AND NOT (leaf)-->()
RETURN MAX(length(p))

 

Published 13 original articles · won praise 2 · Views 6412

Guess you like

Origin blog.csdn.net/huibiannihao/article/details/100039174