Neo4J root node statistics, the number of leaf nodes

  • Count the number of the root node:
    match (the n-) 
    the WHERE not () -> (the n-) 
    return COUNT (DISTINCT the n-)
  • Counting the number of leaf nodes:
    match (the n-) 
    the WHERE not (the n-) -> () 
    return COUNT (DISTINCT the n-)
Published 13 original articles · won praise 2 · Views 6418

Guess you like

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