Skip to content

Commit 7fafb02

Browse files
Hardvancclauss
andauthored
Update backtracking/coloring.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent 42c32e7 commit 7fafb02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backtracking/coloring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,6 @@ def color(graph: list[list[int]], max_colors: int) -> list[int]:
173173

174174
# Use the utility function to try and color the graph starting from vertex 0
175175
if util_color(graph, max_colors, colored_vertices, 0):
176-
return colored_vertices # Return the successful color assignment
176+
return colored_vertices # The successful color assignment
177177

178178
return [] # Return an empty list if no valid coloring is possible

0 commit comments

Comments
 (0)