lifecycles.LifeCycle.get_all_element_memberships¶
- LifeCycle.get_all_element_memberships() dict¶
retrieve the list of groups that contain each element in the LifeCycle
- Returns:
a dictionary keyed by element and valued by a list of group names that contain the element
- Example:
>>> lc = LifeCycle() >>> lc.add_partition([[1,2], [3,4,5]]) >>> lc.add_partition([[1,2,3], [4,5]]) >>> lc.get_all_element_memberships()