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 seemingly simple property has deep mathematical consequences and practical applications in circuit design, geography, and more!

In this section, you'll discover Euler's famous formula, learn why some graphs can never be drawn without crossings, and explore the faces that planar embeddings create.

What You'll Learn

✏️
Planarity Testing
Can this graph be drawn without edge crossings?
🧮
Euler's Formula
V - E + F = 2 for connected planar graphs
🚫
Kuratowski's Theorem
K₅ and K₃,₃ are the forbidden subgraphs
🔷
Faces & Regions
Explore the regions created by planar embeddings

Planarity Tester

A planar graph can be drawn on a plane without any edges crossing. Drag the vertices to try to eliminate all crossings!

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

About Planar Graphs

  • A graph is planar if it can be drawn without crossings
  • K₄ (complete on 4 vertices) is planar
  • K₅ and K₃,₃ are the smallest non-planar graphs
  • Any graph containing K₅ or K₃,₃ as a subgraph is non-planar

Euler's Formula Explorer

Euler's formula states that for any connected planar graph: V - E + F = 2. Click to add vertices, click two vertices to toggle edges, right-click to remove.

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

About Euler's Formula

  • Discovered by Leonhard Euler in 1752
  • V = number of vertices, E = number of edges
  • F = number of faces (including the outer unbounded face)
  • Only valid for connected planar graphs
  • Used to prove that K₅ and K₃,₃ are non-planar!

Kuratowski's Theorem

Kuratowski's theorem states that a graph is planar if and only if it doesn't contain K₅ or K₃,₃ as a subdivision. Try to draw these without crossings — it's 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!

Kuratowski's Theorem (1930)

A graph G is planar if and only if G does not contain a subdivision of K₅ or K₃,₃. A subdivision replaces edges with paths — so any graph with K₅ or K₃,₃ "hidden inside" (possibly with extra vertices on edges) is also non-planar.

Faces Explorer

A face is a region bounded by edges in a planar embedding. Every planar graph has an outer (unbounded) face. Click on colored regions to explore face properties!

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|

About Faces

  • The degree of a face is the number of edges on its boundary
  • Every planar graph has exactly one outer face (unbounded region)
  • Handshaking for faces: sum of all face degrees = 2|E|
  • This is analogous to the handshaking lemma for vertex degrees!

What We've Learned

1. Planar Graphs: A graph is planar if it can be embedded in the plane without edge crossings. Many graphs can be rearranged to be planar, but some fundamentally cannot—their structure guarantees crossings in any drawing.

2. Euler's Formula: 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). This elegant formula dates to 1752 and connects graph topology to geometry.

3. Kuratowski's Theorem: A graph is non-planar if and only if it contains K₅ (complete graph on 5 vertices) or K₃,₃ (complete bipartite graph) as a subdivision. These are the minimal non-planar graphs.

4. Faces: A planar embedding divides the plane into faces. The sum of all face degrees equals 2|E| (handshaking lemma for faces). Understanding faces is key to proving Euler's formula and the Four Color Theorem.

Next Up: In the next section, you'll learn about network flows — how to model and optimize flow through networks, including the famous max-flow min-cut theorem!