neat.STree.__repr__

STree.__repr__(node=None)[source]

Generate a representation string of 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