Graph.index_edge

Graph.index_edge()[source]

Returns a dictionary that maps edges in a list to the corresponding vertex identifier pairs.

Returns:
dict[int, tuple[hashable, hashable]]

A dictionary of index-uv pairs.