Network.edge_index

Network.edge_index()[source]

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

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

A dictionary of uv-index pairs.