Graph.degree
-
Graph.
degree
(key)[source] Return the number of neighbors of a node.
- Parameters
key (hashable) – The identifier of the node.
- Returns
int – The number of neighbors of the node.
Graph.
degree
(key)[source]Return the number of neighbors of a node.
key (hashable) – The identifier of the node.
int – The number of neighbors of the node.