Skip to content

Commit 9f9f436

Browse files
committed
Merge branch 'genetic' of https://github.com/Naman-Vasudev/Python-1 into genetic
2 parents 4446412 + e43ebc5 commit 9f9f436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

genetic_algorithm/adjacency_representation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def adjacency_vector_closed(path: list[str], nodes: list[str]) -> list[str]:
4949
next_city = path[(index + 1) % total_cities]
5050
next_city_map[city] = next_city
5151

52-
return [next_city_map.get(city, '-') for city in nodes]
52+
return [next_city_map.get(city, "-") for city in nodes]
5353

5454

5555
if __name__ == "__main__":

0 commit comments

Comments
 (0)