mosaicmpi.network.Network.add_community_weights_to_graph

mosaicmpi.network.Network.add_community_weights_to_graph#

Network.add_community_weights_to_graph(base_weight=1.0, shared_community_weight=500, shared_dataset_weight=1.05)#

Add attributes to the program graph for generating the community-weighted network. If an edge connects two programs

Parameters:
  • base_weight (float, optional) – Starting weight for all edges, defaults to 1.0

  • shared_community_weight (float, optional) – Multiplier if edges connect programs in the same community, defaults to 500

  • shared_dataset_weight (float, optional) – Multiplier if edges connect programs in the same dataset, defaults to 1.05