Planar Graphs

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

Planar Graphs

Can you draw a graph so that no two edges cross? Most small graphs untangle with a little dragging, but two famous ones never will.

Planarity Tester

Pick a graph and drag its vertices to remove every crossing. K4 and the cube untangle; K5 and K3,3 never do.

Drag vertices to rearrange the graph
1
Edge Crossings
Planar
Graph Type
Go deeper:Planarity Tester

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.

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. 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

Click empty space to add a vertex, click two vertices to toggle an edge, and right-click to remove a vertex. Watch V - E + F stay at 2 while the graph stays connected.

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
Go deeper: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). 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

Switch between K5 and K3,3 and drag their vertices to try for a crossing-free drawing. At least one crossing always remains.

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!
Go deeper:Kuratowski's Theorem

A graph is planar if and only if it contains no subdivision of K5 or K3,3. 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

Click the colored regions to see each face's boundary vertices and degree. Check that the face degrees add up to 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|
Go deeper:Faces Explorer

A planar embedding divides the plane into regions called faces, including one unbounded outer face. 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

  • A graph is planar if some drawing of it has no crossings.
  • V - E + F = 2 for every connected planar graph.
  • A graph is planar exactly when it has no subdivision of K5 or K3,3.
  • The face degrees of a planar embedding add up to 2|E|.

Spot a mistake or have an idea?

Search