lifecycles.LifeCycle.add_partition¶
- LifeCycle.add_partition(partition: list) None¶
add a partition to the LifeCycle. A partition is a list of groups observed at a given time instant. Each partition will be assigned a unique id (tid) corresponding to the observation time, and each group in the partition will be assigned a unique name
- Parameters:
partition – a collection of groups
- Returns:
None
- Example:
>>> lc = LifeCycle() >>> lc.add_partition([[1,2], [3,4,5]]) >>> lc.add_partition([{5,7}, {6,8}])