neat.STree.add_node_with_parent

STree.add_node_with_parent(node, pnode)[source]

Add a node to the tree under a specific parent node

Parameters:
  • node (neat.SNode) – node to be added

  • pnode (neat.SNode) – parent node of the newly added node