pre_order
scipy.cluster.hierarchy.ClusterNode.
- ClusterNode.pre_order(func=<function ClusterNode.<lambda>>)
Perform pre-order traversal without recursive function calls.
When a leaf node is first encountered,
funcis called with the leaf node as its argument, and its result is appended to the list.For example, the statement:
ids = root.pre_order(lambda x