Update backtracking/coloring.py

Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
Hardik Pawar 2024-10-01 08:22:36 +05:30 committed by GitHub
parent 7fafb02c4a
commit 26321da52f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -175,4 +175,4 @@ def color(graph: list[list[int]], max_colors: int) -> list[int]:
if util_color(graph, max_colors, colored_vertices, 0):
return colored_vertices # The successful color assignment
return [] # Return an empty list if no valid coloring is possible
return [] # No valid coloring is possible