FormNetwork.key_index

FormNetwork.key_index()

Returns a dictionary that maps node identifiers to their corresponding index in a node list or array.

Returns

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