Planar Graphs

Euler's formula, planarity testing, and Kuratowski's theorem

Planar Graphs

A planar graph is one that can be drawn in the plane without any edges crossing. This property has deep consequences: Euler's formula relates vertices, edges, and faces in any planar embedding, and Kuratowski's theorem characterizes exactly which graphs are non-planar.

Planarity matters in circuit board layout, geographic information systems, and the proof of the Four Color Theorem. Understanding the structure of planar embeddings -- especially faces and their relationship to edges -- provides powerful tools for reasoning about graphs.

Planarity Tester

Drag vertices to try to draw the graph without any edge crossings. Planar graphs like K4 can always be rearranged to eliminate crossings, while non-planar graphs like K5 and K3,3 will always have at least one crossing.

Drag vertices to rearrange the graph
1
Edge Crossings
Planar
Graph Type

Key insight: Planarity is a topological property of the graph, not a property of any particular drawing. A graph is planar if there exists some arrangement of its vertices that avoids all crossings.

Euler's Formula Explorer

For any connected planar graph, V - E + F = 2, where V is vertices, E is edges, and F is faces (including the outer unbounded face). Click to add vertices, click two vertices to toggle edges, and right-click to remove vertices. Watch the formula hold as you modify the graph.

Click: add vertex or select • Click two vertices: toggle edge • Right-click: remove vertex

V - E + F = 2
4-4+2=2
4
Vertices (V)
4
Edges (E)
2
Faces (F)
Yes
Connected
Euler's formula confirmed: V - E + F = 2

Key insight: Euler's formula, discovered in 1752, is one of the most elegant results in combinatorics. It can be used to prove that K5 and K3,3 are non-planar, and it generalizes to higher-dimensional polytopes.

Kuratowski's Theorem

A graph is planar if and only if it contains no subdivision of K5 or K3,3. Switch between these two forbidden minors and try to drag their vertices into a crossing-free arrangement -- you will find it impossible.

Drag vertices to try to eliminate crossings

5
Vertices
10
Edges
5
Crossings
K₅ is non-planar!
No matter how you arrange the vertices, there will always be at least 1 crossing. K₅ has 5 vertices with every pair connected — too many edges!

Key insight: Kuratowski's theorem (1930) gives a complete characterization: K5 and K3,3 are the only two "forbidden subgraphs" for planarity. Any non-planar graph contains one of them as a subdivision.

Faces Explorer

A planar embedding divides the plane into regions called faces, including one unbounded outer face. Click on the colored regions to inspect face properties such as boundary vertices and face degree. Verify the handshaking lemma for faces: the sum of all face degrees equals 2|E|.

Click on colored regions to select faces

3
Vertices
3
Edges
2
Faces
2
V-E+F

All Faces

Inner
degree: 3
Outer (unbounded)
degree: 3
Sum of face degrees:6
2 × Edges:6
✓ Handshaking lemma for faces: Σ deg(f) = 2|E|

Key insight: Every planar graph has exactly one unbounded outer face. The face handshaking lemma -- the sum of face degrees equals 2|E| -- mirrors the vertex handshaking lemma and is key to many proofs involving planar graphs.

Key Takeaways

  • Planarity -- a graph is planar if it can be embedded in the plane without edge crossings; this is a topological invariant
  • Euler's formula -- V - E + F = 2 for any connected planar graph, relating vertices, edges, and faces
  • Kuratowski's theorem -- a graph is non-planar if and only if it contains a subdivision of K5 or K3,3
  • Faces -- planar embeddings divide the plane into regions; the sum of face degrees equals 2|E| (handshaking lemma for faces)