pm4py.ocel.ocel_o2o_enrichment#
- pm4py.ocel.ocel_o2o_enrichment(ocel: OCEL, included_graphs: Collection[str] | None = None) OCEL [source]#
Enriches the OCEL with information inferred from graph computations by inserting them into the O2O relations.
- Parameters:
ocel (OCEL) – Object-centric event log.
included_graphs (Optional[Collection[str]]) – Types of graphs to include, provided as a list or set of strings. Options include “object_interaction_graph”, “object_descendants_graph”, “object_inheritance_graph”, “object_cobirth_graph”, “object_codeath_graph”.
- Returns:
Enriched object-centric event log.
- Return type:
import pm4py ocel = pm4py.read_ocel('trial.ocel') ocel = pm4py.ocel_o2o_enrichment(ocel) print(ocel.o2o)