BendNetwork.degree

BendNetwork.degree(key)

Return the number of neighbors of a node.

Parameters:
keyhashable

The identifier of the node.

Returns:
int

The number of neighbors of the node.