rustworkx.PyGraph.get_edge_data_by_index#

PyGraph.get_edge_data_by_index(edge_index, /)#

通过给定索引返回边的数据

Parameters:

edge_index (int) – 要获取数据的边的索引

Returns:

边的数据对象

Return type:

翻译

Raises:

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