Graph.key_index

Graph.key_index()[source]

Returns a dictionary that maps node dictionary keys to the corresponding index in a node list or array.

Returns

dict – A dictionary of key-index pairs.