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

scipy.cluster.hierarchy.ClusterNode.

ClusterNode.is_leaf()[source]#

Return True if the target node is a leaf.

Returns:

leafnessbool

True if the target node is a leaf node.