This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / cluster / hierarchy / _hierarchy / prelist

cython_function_or_method

scipy.cluster.hierarchy._hierarchy:prelist

Signature

def prelist(Z, members, n)

Summary

Perform a pre-order traversal on the linkage tree and get a list of ids of the leaves.

Parameters

Z : ndarray

The linkage matrix.

members : ndarray

The array to store the result. Note that this input array will be modified in-place.

n : int

The number of observations.

Aliases

  • scipy.cluster.hierarchy._hierarchy.prelist