scipy.cluster.hierarchy.ClusterNode.is_leaf

ClusterNode.is_leaf()

Returns True iff the target node is a leaf.

Returns :
leafness : bool

True if the target node is a leaf node.

This Page