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 indicies
- Return type: