Graph.uv_index

Graph.uv_index()[source]

Returns a dictionary that maps edge keys (i.e. pairs of vertex keys) to the corresponding edge index in a list or array of edges.

Returns

dict – A dictionary of uv-index pairs.