get_id — SciPy v1.15.3 Manual (original) (raw)

scipy.cluster.hierarchy.ClusterNode.

ClusterNode.get_id()[source]#

The identifier of the target node.

For 0 <= i < n, i corresponds to original observation i. For n <= i < 2n-1, i corresponds to non-singleton cluster formed at iteration i-n.

Returns:

idint

The identifier of the target node.