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.get_edge_data_by_index#

PyDiGraph.get_edge_data_by_index(edge_index, /)#

Return the edge data for the edge by its given index

Parameters:

edge_index (int) – The edge index to get the data for

Returns:

The data object for the edge

Raises:

IndexError – when there is no edge present with the provided index