tnetwork.ComScenario.MERGE

ComScenario.MERGE(toMerge: [<class 'tnetwork.DCD.community.Community'>], merged: str, **kwargs)[source]

Merge the communities in input into a single community with the name (label) provided in output

Parameters:
  • toMerge – labels of snapshot_affiliations to merge
  • merged – label of the merged community (can be same as one of the input or not
Returns:

the merged community (community object)