rustworkx.PyGraph.get_edge_endpoints_by_index¶
- PyGraph.get_edge_endpoints_by_index(edge_index, /)¶
Return the edge endpoints for the edge by its given index
- Parameters:
edge_index (int) – The edge index to get the endpoints for
- Returns:
The endpoint tuple for the edge
- Return type:
tuple
- Raises:
IndexError – when there is no edge present with the provided index