FormNetwork.uv_index

FormNetwork.uv_index()

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.