neat.STree.remove_single_node

STree.remove_single_node(node)[source]

Remove a single node from the tree. The nodes’ children become the children of the nodes’ parent.

Parameters:

node (neat.SNode) – node to be removed