rustworkx.PyGraph.add_nodes_from#
- PyGraph.add_nodes_from(obj_list, /)#
Add new nodes to the graph.
- Parameters:
obj_list (list) – A list of python object to attach to the graph.
- Returns indices:
A list of int indices of the newly created nodes
- Return type: