Skip to content

Commit e43ebc5

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e0808a7 commit e43ebc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

genetic_algorithm/adjacency_representation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def adjacency_vector_closed(path: List[str], nodes: List[str]) -> List[str]:
5656
next_city = path[(index + 1) % total_cities]
5757
next_city_map[city] = next_city
5858

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

6161

6262
if __name__ == "__main__":
@@ -69,4 +69,4 @@ def adjacency_vector_closed(path: List[str], nodes: List[str]) -> List[str]:
6969
print(f"{city}{next_city}")
7070

7171
print("\nVector form:")
72-
print(" ".join(adjacency))
72+
print(" ".join(adjacency))

0 commit comments

Comments
 (0)