neat.STree.pathBetweenNodesDepthFirst¶
-
STree.
pathBetweenNodesDepthFirst
(from_node, to_node)[source]¶ Inclusive path from
from_node
toto_node
, ginven in a depth- first ordering.- Parameters
from_node (neat.SNode) –
to_node (neat.SNode) –
- Returns
List of nodes representing the direct path between
from_node
andto_node
, which are respectively the first and last nodes in the list.- Return type
list of neat.SNode