neat.STree.getSubTree¶
-
STree.
getSubTree
(node, new_tree=None)[source]¶ Get the subtree of the specified node. The root of the subtree is a new node with the same children as the original node, but None instead of a parent.
- Parameters
node (neat.SNode) – root of the sub tree
- Returns
Subtree of with
node
as root- Return type
neat.STree