networkcommons.methods.run_all_paths
- networkcommons.methods.run_all_paths(network, source_dict, target_dict, depth_cutoff=None, verbose=False)
Calculate all paths between sources and targets.
- Parameters:
network (nx.Graph) – The network.
source_dict (dict) – A dictionary containing the sources and sign of perturbation.
target_dict (dict) – A dictionary containing the targets and sign of measurements.
depth_cutoff (int, optional) – Cutoff for path length. If None, there’s no cutoff.
verbose (bool) – If True, print warnings when no path is found to a given target.
- Returns:
A list containing all paths.
- Return type: