Returns a list of leaf node ids (corresponding to observation vector index) as they appear in the tree from left to right. Z is a linkage matrix.
Z : ndarray
The hierarchical clustering encoded as a matrix. See linkage for more information.
L : ndarray
The list of leaf node ids.
scipy.cluster.hierarchy.ClusterNode.pre_order
scipy.cluster.hierarchy.to_tree
Enter search terms or a module, class or function name.