Note
This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.
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: