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

Eulerian Paths, Circuits, and Characterization

College Depth 84 in the knowledge graph I know this Set as goal
8topics build on this
402prerequisites beneath it
See this on the map →
Walks, Trails, Paths, and Cycles in GraphsDegree Sequences and the Handshaking LemmaEuler Paths, Euler Circuits, and Applications
graph-theory euler

Core Idea

An Eulerian path traverses every edge exactly once; an Eulerian circuit is a closed Eulerian path. A connected graph has an Eulerian circuit if and only if all vertices have even degree. It has an Eulerian path if and only if exactly 0 or 2 vertices have odd degree.

How It's Best Learned

Draw small graphs and try to find Eulerian paths by hand. Check the degree condition before attempting.

Common Misconceptions

Explainer

The concept of an Eulerian path was born from the famous Königsberg bridge problem: can you cross each of seven bridges exactly once and return to your starting point? Euler answered no in 1736 by noticing a structural reason — and in doing so, founded graph theory. From your prerequisite on walks, paths, and cycles, you know that a walk allows repeated vertices and edges, while a path does not repeat vertices. An Eulerian path is distinct: it may revisit *vertices* but must use each *edge* exactly once. This edge-traversal constraint is what makes the problem interesting.

The key insight is to think about what happens at each vertex as you pass through it. Every time you enter a vertex along one edge, you must leave it along a different edge. This uses up edges in pairs — one in, one out. A vertex that you merely pass through must therefore have even degree (its edges pair up perfectly). The only vertices allowed to have odd degree are the start and end of the path, where you leave without entering (start) or enter without leaving (end). This gives the complete characterization: a connected graph has an Eulerian circuit (a closed path returning to the start) if and only if every vertex has even degree. It has an Eulerian path (not necessarily closed) if and only if exactly two vertices have odd degree — those two are the forced start and end.

To see this in action, take the Königsberg graph: four land masses connected by seven bridges. Three of the four vertices have odd degree (5, 3, 3, and 3). That's more than two odd-degree vertices, so no Eulerian path exists at all. By contrast, consider a simple cycle (each vertex has degree 2, all even) — every edge can be traversed in circuit order. Now consider a path graph A–B–C–D: vertices A and D have degree 1 (odd), B and C have degree 2 (even). Exactly two odd-degree vertices means an Eulerian path exists from A to D.

The degree sequence you studied as a prerequisite becomes the decision tool here: you don't need to attempt traversal — just count odd-degree vertices. Zero means a circuit exists; two means a path exists from one odd-degree vertex to the other; anything else means neither exists. When an Eulerian circuit does exist, finding one algorithmically is efficient (Hierholzer's algorithm runs in linear time). A common confusion is with Hamiltonian paths and cycles, which visit every *vertex* exactly once instead of every edge — these have no known efficient characterization and are NP-complete in general. The Eulerian condition is clean and local; the Hamiltonian condition is global and hard.

Practice Questions 5 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesSet Operations: Union, Intersection, and ComplementProof by CasesProving by Cases and ExhaustionVacuous Truth and Trivial CasesProof by Cases (Proof by Exhaustion)Mathematical InductionGraph Paths, Cycles, and ConnectivityTrees and Spanning TreesPlanar Graphs and Euler's FormulaGraph Coloring and the Chromatic NumberGraph Coloring and Chromatic NumbersBipartite Graphs and Matching ProblemsBipartite Graphs and 2-ColorabilityGraph Matching and Hall's Marriage TheoremNetwork Flows: Maximum Flow and Minimum CutWalks, Trails, Paths, and Cycles in GraphsEulerian Paths, Circuits, and Characterization

Longest path: 85 steps · 402 total prerequisite topics

Prerequisites (2)

Leads To (1)