Tested tool guide
Tested browser tools
Checked August 16, 2026
What Graph Coloring Tool does, with a checked example
This tool turns graph coloring into something you can see and verify. Build a graph by adding vertices and connecting them with edges, then either color it yourself by clicking or let the tool search for an optimal coloring and report the chromatic number, the fewest colors that keep adjacent vertices different. Because the search tries every assignment, the reported number is the proven minimum, not a heuristic estimate. The surprise most users hit: a valid k-coloring you produce only proves k colors are enough. Whether fewer would work is a separate question, and on graphs like odd cycles the true minimum is usually smaller than a casual attempt suggests.
Worked example
A concrete input and expected output from the current implementation.
Input
5-cycle: vertices 1-5, edges 12, 23, 34, 45, 51
->
Expected output
Chromatic number 3. Sample coloring: color A = {1, 3}, color B = {2, 4}, color C = {5}. The 5-cycle is an odd cycle, and odd cycles are exactly the graphs that cannot be split into two color classes, so 2 colors never work. The search finds a valid 3-coloring instead, and since no 2-coloring exists, 3 is the chromatic number.