neurom.core.tree.isection

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

Iterator to sections of a tree.

Resolves to a tuple of sub-trees forming a section.

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