BendNetwork.is_leaf

BendNetwork.is_leaf(key)

Verify if a node is a leaf.

Parameters:
keyhashable

The identifier of the node.

Returns:
bool

True or False.

Notes

A node is a leaf if it has only one neighbor.