Note
This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.
rustworkx.PyGraph.neighbors#
- PyGraph.neighbors(node, /)#
Get the neighbors of a node.
This with return a list of neighbor node indices
- Parameters:
node (int) – The index of the node to get the neighbors of
- Returns:
A list of the neighbor node indices
- Return type: