neat.STree.insertNode

STree.insertNode(node, pnode, pcnodes=[])[source]

Insert a node in the tree as a child of a specified parent. The original children of the parent that will become children of the node are specified in the pcnodes list

Parameters
  • node (neat.SNode) – the node that is to be inserted

  • pnode (neat.SNode) – the node that will become parent of the node that is to be inserted

  • pcnodes (list of neat.SNode) – the current children of the pnode that will become children of the node