Graph.index_key

Graph.index_key()[source]

Returns a dictionary that maps the indices of a node list to keys in a node dictionary.

Returns

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