mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-04-01 11:26:43 +00:00
Update backtracking/coloring.py
Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
parent
8fae9d55a8
commit
9da28b0ccc
@ -21,7 +21,7 @@ def valid_coloring(
|
|||||||
If all neighbours validate the constraint return True
|
If all neighbours validate the constraint return True
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
neighbours (list[int]): The list representing which vertices
|
neighbours: The list representing which vertices
|
||||||
are adjacent to the current vertex.
|
are adjacent to the current vertex.
|
||||||
1 indicates an edge between the current vertex
|
1 indicates an edge between the current vertex
|
||||||
and the neighbour.
|
and the neighbour.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user