Euler's Formula for Planar Graphs
Statement
For any connected planar graph embedded in the plane with vertices, edges, and faces (including the unbounded outer face):
This is the Euler characteristic of the sphere, and it holds for any planar embedding of any connected planar graph.
Visualization
embedded in the plane with 4 vertices, 6 edges, and 4 faces:
1
/|\
/ | \
/ | \
2---+---3
\ | /
\ | /
\|/
4
V = 4 (vertices: 1, 2, 3, 4)
E = 6 (edges: 12, 13, 14, 23, 24, 34)
F = 4 (faces: △123, △124, △134, △234, outer = △234)
Wait — drawn as above yields exactly 4 faces: three triangular inner faces and one outer (unbounded) face:
| Item | Count |
|---|---|
| Vertices | 4 |
| Edges | 6 |
| Faces | 4 |
Contrast with (): any planar embedding would require , but since every face has edges and each edge borders faces, we'd need , i.e. — contradiction, so is not planar (Kuratowski).
Proof Sketch
- Base case: A tree on vertices has edges and 1 face (the outer), giving .
- Inductive step: If is not a tree, it has a cycle, hence an edge interior to some face. Remove : this merges two faces into one, so decreases by 1 and decreases by 1, leaving unchanged. Repeat until a spanning tree remains.
- By induction, every connected planar graph satisfies .
Connections
Euler's formula is the topological foundation for the non-planarity of Pythagorean TriplesPythagorean TriplesComplete parametrisation of all integer solutions to a² + b² = c²Read more →-style obstructions ( and by Kuratowski). It connects to the Handshake LemmaHandshake LemmaThe sum of all vertex degrees in a finite graph equals twice the number of edges.Read more → via the face-edge incidence count ( for triangle-free planar graphs). The Euler characteristic also appears in <a class="concept-link" data-concept="Cayley's Formula ( trees)">Cayley's Formula ( trees) via spanning trees of planar graphs.
Lean4 Proof
-- Mathlib does not yet have the full planar graph Euler formula.
-- We verify the K₄ instance directly: V=4, E=6, F=4, V−E+F=2.
theorem euler_K4 : (4 : Int) - 6 + 4 = 2 := by decide