rustworkx.PyGraph.edge_index_map#

PyGraph.edge_index_map()#

获取边索引映射

返回一个从边索引到带权重边元组的只读映射,格式为:{0: (0, 1, "weight"), 1: (2, 3, 2.3)}

Returns:

一项边索引映射

Return type:

EdgeIndexMap