mosaicmpi.network.Network.prune_communities

mosaicmpi.network.Network.prune_communities#

Network.prune_communities(min_nodes: int = 1, min_datasets: int = 1, min_nodes_per_dataset: int = 0, renumber=False)#

Prune communities based on one or more filters.

Parameters:
  • min_nodes (int, optional) – Minimum number of nodes per community, defaults to 1

  • min_datasets (int, optional) – Minimum number of datasets with nodes in a community, defaults to 1

  • min_nodes_per_dataset (int, optional) – Minimum number of nodes per dataset in a community, defaults to 0

  • renumber (bool, optional) – Reset the names of the communities after pruning, defaults to False