neurom.core.tree.isegment

neurom.core.tree.isegment(tree, iter_mode=<function ipreorder>)

Iterate over segments

Segments are parent-child pairs, with the child being the center of the iteration

Parameters:
  • tree – the tree over which to iterate
  • iter_mode – iteration mode. Default: ipreorder.