Block.vertex_neighborhood
- Block.vertex_neighborhood(key, ring=1)
Return the vertices in the neighborhood of a vertex.
- Parameters:
- keyint
The identifier of the vertex.
- ringint, optional
The number of neighborhood rings to include.
- Returns:
- list[int]
The vertices in the neighborhood.
Notes
The vertices in the neighborhood are unordered.