neat.STree.find_bifurcation_node_to_root

STree.find_bifurcation_node_to_root(node, cnode=None)[source]

Find the nearest bifurcation node towards root from the input node.

Parameters:
  • node (neat.SNode) – Starting node for search

  • cnode (neat.SNode) – For recursion, don’t change default

Returns:

  • node (neat.SNode) – the bifurcation node

  • cnode (neat.SNode) – The bifurcation node’s child on the path to the input node.