networkcommons.eval.get_connected_targets
- networkcommons.eval.get_connected_targets(network, target_dict, percent=False)
Get the number of connected targets in the network.
- Parameters:
network (nx.Graph) – The network to get the connected targets from.
source_dict (dict) – A dictionary containing the sources and sign of perturbation.
target_dict (dict) – A dictionary containing the targets and sign of measurements.
percent (bool, optional) – If True, return the percentage of connected targets. Defaults to False.
- Returns:
The number of connected targets in the network.
- Return type: