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.PyDAG.add_edges_from#
- PyDAG.add_edges_from(obj_list, /)#
Add new edges to the dag.
- Parameters:
obj_list (iterable) – An iterable of tuples of the form
(parent, child, obj)
to attach to the graph.parent
andchild
are integer indices describing where an edge should be added, and obj is the python object for the edge data.- Returns:
A list of int indices of the newly created edges
- Return type:
list