neurom.analysis.morphtree.path_length

neurom.analysis.morphtree.path_length(tree)

Get the path length from a sub-tree to the root node