SciPy

This is documentation for an old release of SciPy (version 0.17.1). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.cluster.hierarchy.ClusterNode.is_leaf

ClusterNode.is_leaf()[source]

Returns True if the target node is a leaf.

Returns:

leafness : bool

True if the target node is a leaf node.