mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-30 22:23:42 +00:00
Update backtracking/coloring.py
Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
parent
7fafb02c4a
commit
26321da52f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user