Skip to content

Commit 1175107

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphs/uniform_cost_search.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def ucs(self, start_vertex: int, goal_vertex: int) -> tuple[int, list[int]]:
7474
if neighbor not in visited or visited[neighbor] > cost + edge_cost:
7575
pq.put((cost + edge_cost, neighbor, path + [neighbor]))
7676

77-
return float('inf'), [] # If no path found
77+
return float("inf"), [] # If no path found
7878

7979

8080
if __name__ == "__main__":

0 commit comments

Comments
 (0)