neurom.core.Tree

class neurom.core.Tree[source]

Bases: object

Simple recursive tree class

Methods

__init__
add_child Add a child to the list of this tree’s children
ibifurcation_point Iterator to bifurcation points.
iforking_point Iterator to forking points.
ileaf Iterator to all leaves of a tree
ipostorder Depth-first post-order iteration of tree nodes
ipreorder Depth-first pre-order iteration of tree nodes
is_bifurcation_point Is tree a bifurcation point?
is_forking_point Is tree a forking point?
is_leaf Is tree a leaf?
is_root Is tree the root node?
iupstream Iterate from a tree node to the root nodes