rustworkx.PyDAG.edge_index_map#

PyDAG.edge_index_map()#

Get an edge index map

Returns a read only mapping from edge indices to the weighted edge tuple. The return is a mapping of the form: {0: (0, 1, "weight"), 1: (2, 3, 2.3)}

Returns:

An edge index map

Return type:

EdgeIndexMap