scipy.cluster.hierarchy.ClusterNode.is_leaf

ClusterNode.is_leaf()[source]

Return True if the target node is a leaf.

Returns
leafnessbool

True if the target node is a leaf node.