networkcommons.methods.run_corneto_carnival

networkcommons.methods.run_corneto_carnival(network, source_dict, target_dict, betaWeight=0.2, solver=None, verbose=False)

Run the Vanilla Carnival algorithm via CORNETO.

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.

Returns:

The subnetwork containing the paths found by CARNIVAL.

Return type:

nx.Graph