lifecycles.LifeCycle.get_group¶
- LifeCycle.get_group(gid: str) set¶
retrieve a group by id
- Parameters:
gid – the name of the group to retrieve
- Returns:
the group corresponding to the given name
- Example:
>>> lc = LifeCycle() >>> lc.add_partition([[1,2], [3,4,5]]) >>> lc.get_group("0_0") >>> # {1, 2}