neat.STree.depthOfNode

STree.depthOfNode(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