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.

Previous topic

scipy.cluster.hierarchy.ClusterNode.get_right

Next topic

scipy.cluster.hierarchy.ClusterNode.pre_order