Graph.index_uv

Graph.index_uv()[source]

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

Returns

dict[int, tuple[hashable, hashable]] – A dictionary of index-uv pairs.