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.PyDiGraph.update_edge_by_index#
- PyDiGraph.update_edge_by_index(edge_index, edge, /)#
Update an edge’s weight/data payload in place by the edge index
- Parameters:
edge_index (int) – The index of the edge
edge (T) – The python object to attach to the edge
- Raises:
IndexError – when there is no edge present with the provided index