lifecycles.algorithms.facets

facets(lc: LifeCycle, target: str, direction: str) dict

Compute the unicity, identity, and outflow facets of a target set in a lifecycle object. Also compute the size of the target set.

Parameters:
  • lc – a LifeCycle object

  • target – the name of the target set

  • direction – the temporal direction in which the flow is to be analyzed

Returns:

a dictionary containing the facets

Example:

>>> import lifecycles as lcs
>>> # ... create a lc object here ...
>>> facets = lcs.facets(lc, "1_0", "+")
>>> facets.keys()
dict_keys(['U', 'I', 'O', 'size'])