From 7fafb02c4a4c5f9da9031a0f07d6a41fd6e12e56 Mon Sep 17 00:00:00 2001 From: Hardik Pawar <97388607+Hardvan@users.noreply.github.com> Date: Tue, 1 Oct 2024 08:22:29 +0530 Subject: [PATCH] Update backtracking/coloring.py Co-authored-by: Christian Clauss --- backtracking/coloring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backtracking/coloring.py b/backtracking/coloring.py index ae489f9e3..0a9a1139f 100644 --- a/backtracking/coloring.py +++ b/backtracking/coloring.py @@ -173,6 +173,6 @@ def color(graph: list[list[int]], max_colors: int) -> list[int]: # Use the utility function to try and color the graph starting from vertex 0 if util_color(graph, max_colors, colored_vertices, 0): - return colored_vertices # Return the successful color assignment + return colored_vertices # The successful color assignment return [] # Return an empty list if no valid coloring is possible