Discrete Mathematics and Combinatorics

Planar Graphs and Kuratowski's Theorem

Find out which networks can be drawn without crossings, why two small graphs cannot, and how Kuratowski used them.

Key takeaways

  • A graph is planar if at least one drawing of it in the plane has no edge crossings.
  • Euler's formula V − E + F = 2 holds for every connected plane drawing and limits how many edges a planar graph can have.
  • The complete graph K₅ and the utility graph K₃,₃ are not planar.
  • Kuratowski's theorem says a finite graph is planar exactly when it contains no subdivision of K₅ or K₃,₃.
  • Planarity can be tested efficiently by computer, even for very large graphs.

A graph is planar if it can be drawn on a flat sheet so that its edges meet only at shared endpoints. Kuratowski's theorem tells you exactly which finite graphs fail: those that contain, in a stretched-out form, one of just two small graphs. One is five points all joined to each other, and the other is three points each joined to three others.

A graph here is a set of vertices (points) joined by edges (lines or curves). The question is not whether a particular drawing has crossings, but whether some drawing avoids them.

A drawing is not the graph

Take four points and join every pair. Drawn as a square with both diagonals, the diagonals cross. Move one diagonal around the outside of the square, or place the fourth point inside a triangle formed by the other three, and the crossing disappears. This graph, called K₄, is planar.

So a crossing in your picture proves nothing. To show a graph is planar, you exhibit one clean drawing. To show it is not, you need an argument covering every possible drawing, and there are infinitely many.

A theorem usually associated with Fáry says that any planar simple graph (no loops or repeated edges) can even be drawn with all edges as straight line segments.

The utilities puzzle

Three houses each need water, gas and electricity from three suppliers. Can you draw all nine connections without any two lines crossing? You may curve the lines however you like on a flat sheet.

You cannot. The graph, called K₃,₃, has two groups of three vertices with every cross pair joined. Many people try for a long while before suspecting impossibility, and the proof is short once you have the right tool.

Euler's formula

A plane drawing of a graph divides the sheet into regions called faces, including the unbounded one outside. For a connected drawing with V vertices, E edges and F faces:

V − E + F = 2

A cube's corners and edges, flattened onto the page, give V = 8, E = 12 and F = 6, counting the outer region. Indeed 8 − 12 + 6 = 2. The formula and its proof are the subject of the Euler characteristic.

Now count edge sides. In a connected simple planar graph with V ≥ 3, every face has a boundary of at least 3 edge sides, and each edge supplies exactly 2 sides. This is the idea of the handshaking lemma applied to faces.

3F ≤ 2E
F = 2 − V + E                       (Euler)
6 − 3V + 3E ≤ 2E
E ≤ 3V − 6

If the graph has no triangles, every face needs at least 4 sides, so 4F ≤ 2E and the same steps give E ≤ 2V − 4.

Why K5 and K3,3 fail

Graph V E Bound that applies Verdict
K₄ 4 6 3V − 6 = 6 allowed, and planar
K₅ 5 10 3V − 6 = 9 too many edges
K₃,₃ 6 9 2V − 4 = 8 (no triangles) too many edges

Both are therefore nonplanar, for every conceivable drawing. Note the care needed with K₃,₃: it passes the weaker test 9 ≤ 12, and only the triangle-free bound catches it.

The bounds are necessary conditions only. A graph may satisfy them and still be nonplanar. Attach a path of 10 new vertices to K₅: now V = 15 and E = 20, comfortably under 3·15 − 6 = 39, yet the K₅ inside still cannot be drawn flat.

Subdivisions and Kuratowski's theorem

To subdivide an edge is to place a new vertex in the middle of it, replacing one edge with two. Doing this any number of times produces a subdivision. It changes nothing about drawability: a bead on a wire does not remove or create crossings.

A subgraph is what remains after deleting some vertices and edges. If a graph contains a subdivision of K₅ or K₃,₃ as a subgraph, it cannot be planar, since a clean drawing of the whole would give a clean drawing of the part.

Kazimierz Kuratowski proved the remarkable converse, published in 1930:

A finite graph is planar
    if and only if
it has no subgraph that is a subdivision of K5 or of K3,3.

So there are only two basic obstructions. Every nonplanar graph, however large and tangled, hides one of them.

The two obstructions to planarity
K5 5 vertices, 10 edges Every pair joined Each vertex has degree 4 Breaks the bound E ≤ 3V − 6 K3,3 6 vertices, 9 edges Two groups of 3, all cross pairs Each vertex has degree 3 Breaks the bound E ≤ 2V − 4 VS K5 5 vertices, 10 edges Every pair joined Each vertex has degree 4 Breaks the bound E ≤ 3V − 6 K3,3 6 vertices, 9 edges Two groups of 3, all cross pairs Each vertex has degree 3 Breaks the bound E ≤ 2V − 4

A hand test using a ring and chords

For small graphs there is a practical method when you can find a cycle through all the vertices. Draw that cycle as a circle. Every other edge is a chord, which must be drawn either entirely inside the circle or entirely outside it.

Two chords conflict if their endpoints alternate around the circle. Conflicting chords cannot lie on the same side without crossing. So the graph is planar exactly when you can split the chords into an inside set and an outside set, with no conflict within either set.

Apply it to K₃,₃. Label one group 1, 3, 5 and the other 2, 4, 6. The ring 1, 2, 3, 4, 5, 6 uses six of the nine edges. The remaining chords are:

1–4,   2–5,   3–6
1–4 and 2–5 conflict    (endpoints alternate: 1, 2, 4, 5)
2–5 and 3–6 conflict    (2, 3, 5, 6)
1–4 and 3–6 conflict    (1, 3, 4, 6)

Three chords that conflict in pairs cannot be shared between two sides. This is a second proof that K₃,₃ is not planar.

The method turns the question into testing whether the conflict graph is bipartite: make each chord a vertex, join conflicting pairs and try to color with two colors, one for inside and one for outside.

A larger example: the four-dimensional cube

Take the 16 strings of four bits and join two when they differ in exactly one bit. This is the graph of the four-dimensional cube. Each vertex has degree 4, so there are 32 edges. It has no triangles, because changing one bit three times cannot restore the original string.

The triangle-free bound allows at most 2·16 − 4 = 28 edges. Since 32 exceeds 28, the graph is not planar, and you did not need to draw anything. The ordinary three-dimensional cube, with 8 vertices and 12 edges, meets its bound of 12 exactly and is planar.

Minors and the Petersen graph

Klaus Wagner gave a closely related version in 1937 using minors. A minor is obtained by deleting vertices or edges and by contracting edges, which means shrinking an edge until its two ends merge. A finite graph is planar exactly when neither K₅ nor K₃,₃ is a minor.

The Petersen graph shows the difference. It has 10 vertices and 15 edges, drawn usually as a pentagon around a five-pointed star with five spokes between them. It satisfies 15 ≤ 3·10 − 6 = 24. Contract all five spokes and you get K₅. Yet it cannot contain a subdivision of K₅, because that would require vertices of degree 4 and every Petersen vertex has degree 3. It contains a subdivision of K₃,₃ instead.

Wagner's viewpoint grew into the graph minor theory of Neil Robertson and Paul Seymour. One consequence is that any property preserved under taking minors can be described by a finite list of forbidden minors.

What planarity buys you

Counting edges gives an immediate structural fact: every finite simple planar graph has a vertex of degree at most 5. If every degree were 6 or more, then E ≥ 3V, contradicting E ≤ 3V − 6. This fact starts the proofs about map coloring in the four color theorem.

The formula also explains why there are only five Platonic solids. Suppose every face has p edges and q faces meet at every corner, with p, q ≥ 3. Counting edge sides gives pF = 2E, and counting edge ends gives qV = 2E. Substituting into Euler's formula:

2E/q − E + 2E/p = 2
1/q + 1/p = 1/2 + 1/E
so 1/p + 1/q > 1/2

The only whole number solutions (p, q) are (3,3), (4,3), (3,4), (5,3) and (3,5): the tetrahedron, cube, octahedron, dodecahedron and icosahedron.

Testing, circuits and other surfaces

Searching directly for subdivisions would be clumsy. Better methods exist: John Hopcroft and Robert Tarjan showed in 1974 that planarity can be tested in time proportional to the number of vertices.

Planarity matters when wires must not cross, as on a single layer of a circuit board, and in drawing diagrams that people can read. When a design is nonplanar, engineers add layers or accept some crossings and try to minimize them. Finding the minimum number of crossings is computationally hard in general.

On other surfaces the rules change. On a torus, the surface of a ring doughnut, both K₅ and K₃,₃ can be drawn without crossings, and so can K₇. The utilities puzzle becomes solvable if your houses are built on a doughnut. Topology, introduced in this overview, studies why the surface makes the difference.

Common mistakes

  • Declaring a graph nonplanar because one drawing has crossings.
  • Using E ≤ 3V − 6 to prove a graph is planar. It can only rule planarity out.
  • Applying E ≤ 2V − 4 to a graph that contains triangles.
  • Looking for K₅ or K₃,₃ only as exact subgraphs and forgetting subdivided versions.
  • Forgetting the outer face when counting faces.

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 45 articles in Discrete Mathematics and Combinatorics →

Latest news on this topic