neurom.core.tree.Tree¶
-
class
neurom.core.tree.Tree[source]¶ Bases:
objectSimple recursive tree class
Methods
__init__add_childAdd a child to the list of this tree’s children ibifurcation_pointIterator to bifurcation points. iforking_pointIterator to forking points. ileafIterator to all leaves of a tree ipostorderDepth-first post-order iteration of tree nodes ipreorderDepth-first pre-order iteration of tree nodes is_bifurcation_pointIs tree a bifurcation point? is_forking_pointIs tree a forking point? is_leafIs tree a leaf? is_rootIs tree the root node? iupstreamIterate from a tree node to the root nodes