Network.neighborhood
- Network.neighborhood(key, ring=1)[source]
Return the nodes in the neighborhood of a node.
- Parameters:
- keyhashable
The identifier of the node.
- ringint, optional
The size of the neighborhood.
- Returns:
- list[hashable]
A list of node identifiers.
See also