rustworkx.PyGraph.get_edge_data_by_indexΒΆ
- PyGraph.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
- Return type:
T
- Raises:
IndexError β when there is no edge present with the provided index