grape.general_graph.GeneralGraph.shortest_path_length

property GeneralGraph.shortest_path_length

Shortest path length.

Returns

shortest_path_length attribute for every node. The keys correspond to source, while as value a dictionary keyed by target and valued by the source-target shortest path length.

Return type

dict