tnetwork.ComScenario.SPLIT

ComScenario.SPLIT(toSplit: tnetwork.DCD.community.Community, newComs: [<class 'str'>], sizes: [<class 'int'>], **kwargs)[source]

Split a single community into several ones. Note that to control exactly which nodes are moved, one should use migrate instead

Parameters:
  • toSplit – label of the community to split
  • newComs – labels to give to the new snapshot_affiliations (list). The label of the community before split can be or not among them
  • sizes – sizes of the new snapshot_affiliations, in number of nodes. In the same order as newComs.
Returns:

a list of snapshot_affiliations resulting from the split.