File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
"""
2
- Graph Coloring (also called the "m coloring problem") is the problem of
3
- assigning at most 'm' colors to the vertices of a graph such that
2
+ Graph Coloring (also called the "m coloring problem") is the problem of
3
+ assigning at most 'm' colors to the vertices of a graph such that
4
4
no two adjacent vertices share the same color.
5
5
6
6
Wikipedia: https://en.wikipedia.org/wiki/Graph_coloring
@@ -119,7 +119,7 @@ def util_color(
119
119
120
120
def color (graph : list [list [int ]], max_colors : int ) -> list [int ]:
121
121
"""
122
- Attempts to color the graph with at most max_colors colors such that no two adjacent
122
+ Attempts to color the graph with at most max_colors colors such that no two adjacent
123
123
vertices have the same color. If it is possible, returns the list of color assignments;
124
124
otherwise, returns an empty list.
125
125
You can’t perform that action at this time.
0 commit comments