### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.12 Reference Guide (DRAFT) »
- Clustering package (`scipy.cluster`) »
- Hierarchical clustering (`scipy.cluster.hierarchy`) »

# scipy.cluster.hierarchy.leaves_list

`scipy.cluster.hierarchy.``leaves_list`(Z)

  Returns a list of leaf node ids

  The return corresponds to the observation vector index as it appears in the tree from left to right. Z is a linkage matrix.

  Parameters : | Z : ndarray The hierarchical clustering encoded as a matrix. Z is a linkage matrix. See `linkage` for more information.
  Returns : | leaves_list : ndarray The list of leaf node ids.

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- SciPy v0.12 Reference Guide (DRAFT) »
- Clustering package (`scipy.cluster`) »
- Hierarchical clustering (`scipy.cluster.hierarchy`) »