kcolorable
In graph theory, a graph G is k-colorable if its vertices can be colored with at most k colors so that no two adjacent vertices share a color. A k-coloring is such a proper coloring. The smallest k for which G is k-colorable is called its chromatic number, denoted χ(G). Thus G is k-colorable exactly when χ(G) ≤ k.
Special cases include k = 2. A graph is 2-colorable if and only if it is bipartite. By
Computationally, the k-colorability problem asks, given a graph G and an integer k, whether G is k-colorable.
k-colorability is studied in various graph classes and in applications such as scheduling, register allocation in