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.
- PyDiGraph.add_node(obj, /)#
Add a new node to the graph.
obj – The python object to attach to the node
The index of the newly created node
- Return type: