neat.STree.__iter__

STree.__iter__(node=None, **kwargs)[source]

Iterate over the nodes in the subtree of the given node.

Beware, if the given node is not in the tree, it will simply iterate over the subtree of the given node.

Parameters

node (neat.SNode (optional)) – The starting node. Defaults to the root