neat.STree.depth_of_node

STree.depth_of_node(node)[source]

compute the depth of the node (number of edges between node and root)

Parameters:

node (neat.SNode)

Returns:

depth of the node

Return type:

int