lifecycles.LifeCycle.groups_ids

LifeCycle.groups_ids() list

retrieve the group ids of the lifecycle. Each id is of the form ‘tid_gid’ where tid is the temporal id and gid is the group id. The group id is a unique identifier of the group within the temporal id.

Returns:

a list of ids of the temporal groups

Example:

>>> lc = LifeCycle()
>>> lc.add_partition([[1,2], [3,4,5]])
>>> lc.add_partition([{5,7}, {6,8}])
>>> lc.groups_ids()
['0_0', '0_1', '1_0', '1_1']