### Navigation

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

# scipy.cluster.hierarchy.ClusterNode

class `scipy.cluster.hierarchy.``ClusterNode`(id, left=None, right=None, dist=0, count=1)

  A tree node class for representing a cluster. Leaf nodes correspond to original observations, while non-leaf nodes correspond to non-singleton clusters.

  The to_tree function converts a matrix returned by the linkage function into an easy-to-use tree representation.

  Seealso : | to_tree: for converting a linkage matrix `Z` into a tree object.

  Methods

  `get_count` |
  `get_id` |
  `get_left` |
  `get_right` |
  `is_leaf` |
  `pre_order` |

### Navigation

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