SciPy

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

scipy.cluster.hierarchy.ClusterNode.is_leaf

ClusterNode.is_leaf(self)[source]

Return True if the target node is a leaf.

Returns
leafnessbool

True if the target node is a leaf node.

Previous topic

scipy.cluster.hierarchy.ClusterNode.get_right

Next topic

scipy.cluster.hierarchy.ClusterNode.pre_order