model (Block) – a Pyomo model or block to be used for community detection
type_of_community_map (str, optional) – a string that specifies the type of community map to be returned, the default is ‘constraint’.
‘constraint’ returns a dictionary (community_map) with communities based on constraint nodes,
‘variable’ returns a dictionary (community_map) with communities based on variable nodes,
‘bipartite’ returns a dictionary (community_map) with communities based on a bipartite graph (both constraint
and variable nodes)
with_objective (bool, optional) – a Boolean argument that specifies whether or not the objective function is
included in the model graph (and thus in ‘community_map’); the default is True
weighted_graph (bool, optional) – a Boolean argument that specifies whether community_map is created based on a weighted model graph or an
unweighted model graph; the default is True (type_of_community_map=’bipartite’ creates an unweighted
model graph regardless of this parameter)
random_seed (int, optional) – an integer that is used as the random seed for the (heuristic) Louvain community detection
use_only_active_components (bool, optional) – a Boolean argument that specifies whether inactive constraints/objectives are included in the community map