A Proof of Euler’s Formula Using Graph Duality

A planar graph and its dual have complementary spanning trees. Counting their edges gives a visual proof that V − E + F = 2.

チャンネル
3Blue1Brown
公開日
2015年6月21日
動画
7:27
読了時間
3 分
スライド
4
原文
英語
YouTube で開く
スクロールすると動画は右下に小さくなって再生を続けます。字幕は閲覧言語に合わせて切り替わります。
閲覧言語2 言語で読めます
この記事はまだ日本語に翻訳されていないため、英語の原文を表示しています。
要約

30 秒でわかる

3Blue1Brown explains cycles, spanning trees and planar duals before using their relationship to prove Euler’s formula for a connected planar graph. The key is that the edges outside a spanning tree form a spanning tree of the dual.

  1. 1Euler’s characteristicFor a connected planar drawing, V − E + F = 2 when the outer face is included.
  2. 2Spanning treesA spanning tree connects all vertices without cycles, using V − 1 edges.
  3. 3The dual graphTreat faces as vertices and connect the faces on either side of each original edge.
  4. 4Complementary treesThe edges not in the original spanning tree form a spanning tree of the dual.
  5. 5Count the edgesThe two trees have V − 1 and F − 1 edges, so E = V + F − 2.

ポイント

  1. For a connected planar graph, vertices minus edges plus faces equals two, including the unbounded face.
  2. A spanning tree connects every vertex without forming a cycle.
  3. The dual graph has one vertex for each face of the original embedding and a corresponding edge across each original edge.
  4. The edges outside a primal spanning tree form a spanning tree in the dual, so their counts yield Euler’s formula.
全文

チャプターごとに整えた全文を読む

文字起こしのみ
01

Euler’s formula and graph terminology

The formula relates vertices, edges and faces of a connected planar graph. Cycles and spanning trees provide the tools for the proof.

I want to show a proof of Euler’s characteristic formula that illustrates the elegance of duality. This is not a claim that the proof is better than the usual inductive one; it is an example of how a different perspective can reveal structure.

Draw a connected graph in the plane without crossing edges. Count its vertices V, its edges E and the faces F into which those edges divide the plane, including the unbounded outer face. Euler’s formula says V − E + F = 2. The terminology comes from Euler’s original work on three-dimensional polyhedra.

Vertices, edges and faces
スライド 1 / 4Vertices, edges and facesA connected planar graph illustrates the quantities in Euler’s formula.

Imagine a creature named Randolph traveling along the graph’s edges. A path is a sequence of edges he can travel without immediately retracing an edge; a cycle returns to its starting vertex. Cycles matter here because they enclose faces.

Now suppose Randolph wants to reach every vertex, but buys an edge only when it gives him access to a vertex he could not reach before. He ends up with a connected set of edges without cycles: a tree. A tree that touches every vertex of the original graph is called a spanning tree.

02

Constructing the dual graph

A graph is an abstract set of objects and connections. For a planar embedding, its faces become the vertices of a dual graph.

A graph itself is more abstract than its drawing: it consists of objects and a notion of connection. Accounts and friendships form a graph, as do words linked when they differ by one letter or mathematicians linked by coauthored papers. Dots and lines are a way to depict those relationships.

For a planar drawing, consider each face an object and say two faces are connected across an edge. This produces the dual graph. To draw it, place a vertex in each face and connect vertices across the original edges. The outer face also gets a vertex, which can be pictured as a point at infinity; multiple edges and loops can occur in the dual.

The planar dual
スライド 2 / 4The planar dualThe red dual edges cross the original graph’s edges and connect its faces.

The distinction between a graph and its drawing helps make the correspondence clear: each original edge has a dual edge, even though their drawn lines look different. Cycles and separation in one graph are related to connectivity in the other.

03

Two spanning trees and the edge count

The edges outside a spanning tree form a dual spanning tree. Counting both trees proves Euler’s formula.

Give Randolph an alter ego, Mortimer, who travels between faces in the dual. Randolph owns the edges of a spanning tree, and Mortimer may cross only the remaining edges. Those remaining edges form a spanning tree of the dual: they connect all faces and contain no dual cycle.

Why can Mortimer reach every face? A collection of Randolph’s edges could trap a face only by forming a cycle, which a tree cannot have. Conversely, if Mortimer could follow a dual cycle, it would separate some original vertices from the others, contradicting the fact that Randolph’s tree spans all vertices.

A dual cycle would separate vertices
スライド 3 / 4A dual cycle would separate verticesThe diagram illustrates why a cycle available to Mortimer would prevent the original spanning tree from connecting every vertex.

A tree with V vertices has V − 1 edges: after the first vertex, each new edge brings in one new vertex. Randolph’s tree therefore uses V − 1 edges. Mortimer’s tree spans the F faces of the original graph, so it uses F − 1 of the remaining edges. Together they account for every original edge: E = (V − 1) + (F − 1), or V − E + F = 2.

Counting the two trees
スライド 4 / 4Counting the two treesEach tree has one fewer edge than vertices; the dual’s vertices are the original graph’s faces.

同じチャンネルの記事

スライド 20 枚40:44EN
3Blue1Brown· 2026年10月16日Grant Sanderson: There's never been a better time to go into mathGrant Sanderson, Constantin Kogler · 3Blue1BrownStudents fear AI has solved mathematics. Grant Sanderson argues the opposite: even if machines prove theorems better than we do, the institution of math stays valuable—and this is a rare moment when newcomers can reshape it.MathematicsAI for scienceHuman-AI Collaboration+2
スライド 29 枚51:55EN
3Blue1Brown· 2026年9月18日The last IMO problem AI could not solveGrant Sanderson · 3Blue1BrownGrant Sanderson walks through IMO 2025 Problem 6 — a tiling puzzle that frontier models missed — and the visual patience it takes to prove a construction is optimal.MathematicsAI researchReasoning & test-time compute+2
0:55EN
3Blue1Brown· 2026年7月24日The 64 Sugar Cubes Puzzle: Six Equal DistancesA 4×4×4 block has three colors; prove that six same-colored pairs share a distance.MathematicsEducation
33:51EN
3Blue1Brown· 2026年7月16日What Cross-Entropy Connects: Compression, Language Models and KL DivergenceGrant Sanderson · 3Blue1BrownGrant Sanderson builds cross-entropy from code lengths and uses it to explain next-token training and distillation.MathematicsMachine LearningFoundation Models+1
スライド2:25EN
3Blue1Brown· 2026年6月12日How Shannon Measured the Entropy of EnglishA guessing game helped Claude Shannon estimate how much information English text contains, and why prediction is central to compression.MathematicsAI History
スライド1:02EN
3Blue1Brown· 2026年6月10日A Robot Walk and the Puzzle of Optimal Binary EncodingHow few bits does it take to send directions that occur with unequal frequencies?MathematicsScience Communication