Skip to content

Commit 1c243fc

Browse files
authored
Fix typo in TSP validation comments
1 parent 795be1d commit 1c243fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

graphs/travelling_salesman_problem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def travelling_salesman_brute_force(
8888

8989
nodes = list(graph_points.keys()) # Extracting the node names (keys)
9090

91-
# There shoukd be atleast 2 nodes for a valid TSP
91+
# There should be at least 2 nodes for a valid TSP
9292
if len(nodes) < 2:
9393
raise InvalidGraphError("Graph must have at least two nodes")
9494

@@ -134,7 +134,7 @@ def travelling_salesman_dynamic_programming(
134134

135135
n = len(graph_points) # Extracting the node names (keys)
136136

137-
# There shoukd be atleast 2 nodes for a valid TSP
137+
# There should be at least 2 nodes for a valid TSP
138138
if n < 2:
139139
raise InvalidGraphError("Graph must have at least two nodes")
140140

0 commit comments

Comments
 (0)