pm4py.objects.conversion.ocel.variants.ocel_to_nx module#

class pm4py.objects.conversion.ocel.variants.ocel_to_nx.Parameters(*values)[source]#

Bases: Enum

INCLUDE_DF = 'include_df'#
INCLUDE_OBJECT_CHANGES = 'include_object_changes'#
pm4py.objects.conversion.ocel.variants.ocel_to_nx.apply(ocel: OCEL, parameters: Dict[Any, Any] | None = None)[source]#

Converts an OCEL to a NetworkX DiGraph object. The nodes are the events and objects of the OCEL. The edges are of two different types: - relation edges, connecting an event to its related objects - directly-follows edges, connecting an event to a following event (in the lifecycle of one of the related objects)

Parameters:
  • ocel – Object-centric event log

  • parameters – Parameters of the algorithm, including: - Parameters.INCLUDE_DF => include the directly-follows relationship

Returns:

NetworkX DiGraph

Return type:

G