Skip to content

Commit

Permalink
Merge pull request #471 from ngynkvn/refactor/sort
Browse files Browse the repository at this point in the history
refactor: Use `sorted` with key func for `get_sorted_nodes_edges`
  • Loading branch information
fit-alessandro-berti authored Mar 11, 2024
2 parents 9b7ca82 + 9440704 commit 0b46533
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pm4py/objects/bpmn/util/sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from typing import Iterable, List, Tuple
from pm4py.objects.bpmn.obj import BPMN


def bfs_bpmn(nodes: Iterable[BPMN.Event], edges: Iterable[Tuple[BPMN.Event, BPMN.Event]]):
start_nodes: List[BPMN.Event] = [n for n in nodes if isinstance(n, BPMN.StartEvent)]
level = 0
Expand Down

0 comments on commit 0b46533

Please sign in to comment.