Skip to content

Commit 82d0740

Browse files
author
Hamid Gasmi
committed
#189 is refactored
1 parent 5d2eb5c commit 82d0740

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

09-problems/graph-algorithms-in-genome-sequencing/eulerian_path.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def eulerian_path(edges):
99

1010
path = []
1111
if len(graph.unbalanced_vertices) == 0:
12-
# The graph is balanced: let's try to find an Eurelian Cycle
12+
# The graph is balanced: let's try to find an Eurelian Cycle (it must be strongly connected)
1313
path = graph.eulerian_cycle()
1414

1515
elif len(graph.unbalanced_vertices) == 2:
@@ -33,7 +33,7 @@ def eulerian_path(edges):
3333

3434
graph.adjacency_list[add_edge_start]. append(add_edge_end)
3535

36-
# Find an Eulerian Cycle with the additional edge
36+
# Find an Eulerian Cycle with the additional edge (it must be strongly connected)
3737
cycle = graph.eulerian_cycle()
3838

3939
# Remove the additional edge from the cycle

0 commit comments

Comments
 (0)