Skip to content

Commit e9ee74e

Browse files
correct conversion to MultiDiGraph
1 parent 43983cf commit e9ee74e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

pm4py/objects/conversion/ocel/variants/ocel_to_nx.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Parameters(Enum):
1313

1414
def apply(ocel: OCEL, parameters: Optional[Dict[Any, Any]] = None):
1515
"""
16-
Converts an OCEL to a NetworkX DiGraph object.
16+
Converts an OCEL to a NetworkX MultiDiGraph object.
1717
The nodes are the events and objects of the OCEL.
1818
The edges are of two different types:
1919
- relation edges, connecting an event to its related objects
@@ -30,7 +30,7 @@ def apply(ocel: OCEL, parameters: Optional[Dict[Any, Any]] = None):
3030
Returns
3131
---------------
3232
G
33-
NetworkX DiGraph
33+
NetworkX MultiDiGraph
3434
"""
3535
if parameters is None:
3636
parameters = {}
@@ -42,7 +42,7 @@ def apply(ocel: OCEL, parameters: Optional[Dict[Any, Any]] = None):
4242
Parameters.INCLUDE_OBJECT_CHANGES, parameters, True
4343
)
4444

45-
G = nx_utils.DiGraph()
45+
G = nx_utils.MultiDiGraph()
4646

4747
stream = ocel.events.to_dict("records")
4848
stream = to_event_stream.__postprocess_stream(stream)

0 commit comments

Comments
 (0)