networkcommons.methods.run_shortest_paths
- networkcommons.methods.run_shortest_paths(network, source_dict, target_dict, verbose=False)
Calculate the shortest paths between sources and targets.
- Parameters:
- Returns:
The subnetwork containing the shortest paths. list: A list containing the shortest paths.
- Return type:
nx.Graph