A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Euler Paths, Euler Circuits, and Applications

College Depth 85 in the knowledge graph ☐ I know this ☆ Set as goal
7topics build on this
403prerequisites beneath it
See this on the map →
Eulerian Paths, Circuits, and Characterization→→Hamiltonian Paths and Cycles
Euler-path Euler-circuit degree Chinese-postman

Core Idea

An Euler path visits every edge exactly once; an Euler circuit closes back to its start. A connected graph has an Euler circuit iff all vertices have even degree; an Euler path exists iff exactly 0 or 2 vertices have odd degree. The Chinese postman problem seeks a shortest walk covering all edges.

How It's Best Learned

Check degree conditions to determine Euler path/circuit existence before searching. Construct Euler circuits using Hierholzer's algorithm. Apply to street traversal (postman, parade routes) and circuit design.

Common Misconceptions

Euler paths traverse edges, not vertices. A graph can have many Euler paths/circuits if the conditions hold. The bridge-crossing puzzle (Königsberg) famously has no Euler circuit.

Explainer

The historical starting point is the Königsberg bridge problem: seven bridges crossed the branches of the Pregel River, and citizens wondered whether they could walk through the city crossing each bridge exactly once and return to their starting point. Euler proved it was impossible in 1736 — and in doing so, invented graph theory. His insight was to model the landmasses as vertices and the bridges as edges, then ask a purely structural question about the graph.

The answer hinges entirely on vertex degree. When you enter a vertex through an edge, you must leave through a different edge — so each visit to a vertex uses up two edges (one in, one out). This means an Euler circuit (a closed walk covering every edge exactly once) can only exist if every vertex has even degree: no vertex can be "stuck" with an edge entering that has no matching exit. Conversely, an Euler path (which may start and end at different vertices) can tolerate exactly two odd-degree vertices — the start (which you leave first) and the end (which you enter last). The Königsberg graph has four odd-degree vertices, so neither an Euler path nor an Euler circuit exists.

These are if-and-only-if conditions, not just necessary ones. If a connected graph has all even degrees, an Euler circuit is guaranteed to exist, and Hierholzer's algorithm constructs one efficiently: start anywhere, follow edges (avoiding bridges when possible) until you return to the start, then splice in detours through any unvisited edges. The algorithm runs in O(E) time. The conditions you learned in the prerequisite topic (Euler paths/circuits) are applied here: first check degrees to determine existence, then construct if possible.

Real-world applications make the abstraction concrete. The Chinese postman problem asks a mail carrier to traverse every street at least once and return to the starting point with minimum total distance. In graph terms: if the graph already has an Euler circuit, the carrier just follows it. If some vertices have odd degree, the carrier must repeat certain edges — the optimal solution adds repeated edges to pair up odd-degree vertices at minimum cost, effectively restoring the all-even-degree condition. Similar problems arise in circuit board testing (probing every connector), DNA fragment assembly, and route planning for autonomous vehicles.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Set Operations: Union, Intersection, and Complement → Proof by Cases → Proving by Cases and Exhaustion → Vacuous Truth and Trivial Cases → Proof by Cases (Proof by Exhaustion) → Mathematical Induction → Graph Paths, Cycles, and Connectivity → Trees and Spanning Trees → Planar Graphs and Euler's Formula → Graph Coloring and the Chromatic Number → Graph Coloring and Chromatic Numbers → Bipartite Graphs and Matching Problems → Bipartite Graphs and 2-Colorability → Graph Matching and Hall's Marriage Theorem → Network Flows: Maximum Flow and Minimum Cut → Walks, Trails, Paths, and Cycles in Graphs → Eulerian Paths, Circuits, and Characterization → Euler Paths, Euler Circuits, and Applications

Longest path: 86 steps · 403 total prerequisite topics

Prerequisites (1)

Leads To (1)