pm4py.convert.convert_ocel_to_networkx#
- pm4py.convert.convert_ocel_to_networkx(ocel: OCEL, variant: str = 'ocel_to_nx') DiGraph [source]#
Converts an OCEL to a NetworkX DiGraph object.
- Return type:
DiGraph
- Parameters:
ocel (
OCEL
) – The object-centric event log to convert.variant (
str
) – The variant of the conversion to use. Options: - “ocel_to_nx”: Graph containing event and object IDs and two types of relations (REL=related objects, DF=directly-follows). - “ocel_features_to_nx”: Graph containing different types of interconnections at the object level.
- Returns:
A
nx.DiGraph
object representing the OCEL.