rustworkx.PyDiGraph.add_node¶
- PyDiGraph.add_node(obj, /)¶
Add a new node to the graph.
- Parameters:
obj (S) – The Python object to attach to the node
- Returns:
The index of the newly created node
- Return type:
int
Add a new node to the graph.
obj (S) – The Python object to attach to the node
The index of the newly created node
int