Network.uv_index

Network.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[tuple[hashable, hashable], int] – A dictionary of uv-index pairs.