netcenlib.common.nx_cached module

netcenlib.common.nx_cached.all_pairs_shortest_path_length(network: Graph)[source]

Cache result of nx.all_pairs_shortest_path_length.

netcenlib.common.nx_cached.all_shortest_paths(network: Graph, source: Any, target: Any)[source]

Cache result of nx.all_shortest_paths.

netcenlib.common.nx_cached.shortest_path_length(network: Graph, source: Any, target: Any)[source]

Cache result of nx.shortest_path_length.

netcenlib.common.nx_cached.single_source_shortest_path_length(network: Graph, v: Any)[source]

Cache result of nx.single_source_shortest_path_length.