We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d2eb5c commit 82d0740Copy full SHA for 82d0740
09-problems/graph-algorithms-in-genome-sequencing/eulerian_path.py
@@ -9,7 +9,7 @@ def eulerian_path(edges):
9
10
path = []
11
if len(graph.unbalanced_vertices) == 0:
12
- # The graph is balanced: let's try to find an Eurelian Cycle
+ # The graph is balanced: let's try to find an Eurelian Cycle (it must be strongly connected)
13
path = graph.eulerian_cycle()
14
15
elif len(graph.unbalanced_vertices) == 2:
@@ -33,7 +33,7 @@ def eulerian_path(edges):
33
34
graph.adjacency_list[add_edge_start]. append(add_edge_end)
35
36
- # Find an Eulerian Cycle with the additional edge
+ # Find an Eulerian Cycle with the additional edge (it must be strongly connected)
37
cycle = graph.eulerian_cycle()
38
39
# Remove the additional edge from the cycle
0 commit comments