mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-30 18:36:43 +00:00
Update backtracking/coloring.py
Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
parent
d38b935106
commit
8fae9d55a8
@ -11,7 +11,7 @@ def valid_coloring(
|
||||
neighbours: list[int], colored_vertices: list[int], color: int
|
||||
) -> bool:
|
||||
"""
|
||||
This function checks if a given vertex can be assigned the specified color
|
||||
Check if a given vertex can be assigned the specified color
|
||||
without violating the graph coloring constraints (i.e., no two adjacent vertices
|
||||
have the same color).
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user