Problem Solving

Graph Coloring

A student sets differently colored caps on connected pins.

Graph Coloring definition

A proper vertex coloring assigns colors to vertices so that adjacent vertices have different colors.

In Spanish
coloración de grafos
Topic
Graph theory

Graph Coloring in a picture

Graph Coloring diagramThe triangle uses three different colors because every pair is adjacent.ABC
The triangle uses three different colors because every pair is adjacent.

How it works

Colors are labels for groups of vertices that can share a class without conflicting. Only edges impose restrictions. For example, when a graph records which exams share students, different colors can represent different time slots.

Worked examples

Can the two endpoints of one edge have the same color?

No, not in a proper vertex coloring.

Can two unconnected vertices share a color?

Yes.

How many colors suffice for a square with no diagonals?

Two. Alternate colors around the square.

Common mistake

Color the vertices for a vertex-coloring problem. Edge coloring is a different problem with its own rules.

Quick check

What vertices must have different colors?

Show answer

Adjacent vertices.

Can two isolated vertices share a color?

Show answer

Yes.

What is the smallest number of colors called?

Show answer

The chromatic number.

Sources

Flashcard

Graph Coloring

Reveal the definition

A proper vertex coloring assigns colors to vertices so that adjacent vertices have different colors.

Effortless Math. “Graph Coloring.” Math Dictionary.