Graph.degree
- Graph.degree(key)[source]
Return the number of neighbors of a node.
- Parameters:
- keyhashable
The identifier of the node.
- Returns:
- int
The number of neighbors of the node.
See also
Site Navigation
Return the number of neighbors of a node.
The identifier of the node.
The number of neighbors of the node.
See also