Euler route definition
An Euler route is a route that uses every edge exactly once. The video further distinguishes an Euler circuit, which returns to its starting vertex, from an Euler path, which may end anywhere.
Bare Metal Vibes · YouTube · 4:02
This 120-second recap compares Euler and Hamilton routes in graph theory. It defines an Euler route as using every edge exactly once, distinguishes Euler circuits from Euler paths, and explains the odd-degree test with a house-shaped example graph. It also gives the intuitive reason that internal visits consume edges in pairs, mentions why the Königsberg bridge walk is impossible, and then introduces Hamilton routes as visiting every vertex exactly once while stressing that Hamilton is fundamentally harder and not a minor variation of Euler. This video segment recaps key concepts about Hamilton circuits in graph theory. It highlights that unlike Euler circuits, there is no simple degree test to determine if a Hamilton circuit exists. The segment introduces Dirac's and Ore's theorems as sufficient but not necessary conditions for guaranteeing a Hamilton circuit, using the cycle graph C5 as a counterexample to necessity. It then states that the general problem of deciding Hamilton circuit existence is NP-complete. Finally, the video transitions to the topic of weighted graphs, defining them and introducing the Traveling Salesperson Problem (TSP) as the search for the shortest Hamilton circuit in a weighted graph, setting the stage for discussing shortest path algorithms like Dijkstra's. This 2-second clip displays a static summary slide contrasting the computational difficulty of Euler paths (easy, based on odd-degree vertices) and Hamiltonian paths (hard, NP-complete). It also previews the next topic: applying weights to edges for algorithms like Dijkstra's and the Traveling Salesman Problem.
Use the learning inspector for key ideas and moments, or open the reading tabs for the complete notes.
Generated from the video's visuals and explanation; not verbatim speech.
The clip opens by framing two graph problems that sound almost identical: drawing a figure in one stroke while crossing every line exactly once, and touring cities while visiting each one exactly once.
It names the first problem Euler and the second Hamilton, and immediately contrasts them as “every edge” versus “every vertex.”
The key claim of the introduction is that these similar-sounding questions have very different difficulty: Euler is easy, Hamilton is hard.
The Euler section defines an Euler route as a route using every edge exactly once.
It then distinguishes an Euler circuit, which returns to its starting point, from an Euler path, which may end anywhere.
A house-shaped graph with vertices a, b, c, d, e is introduced as the working example.
The video says the whole Euler question can be settled by counting odd-degree vertices.
In the example, vertices c and d are identified as the odd ones.
The rule is stated explicitly: 0 odd vertices give an Euler circuit, exactly 2 odd vertices give an Euler path between them, and more than 2 mean neither exists.
The reason given is that whenever a route passes through a vertex internally, it uses one edge to enter and one to leave, so those internal vertices must have even degree.
This parity idea is then used to explain why the Königsberg seven-bridge walk is impossible: the example has four odd landmasses.
The Euler portion closes by emphasizing that a single glance at the degrees decides the answer.
A transition slide introduces the “twin” problem, saying it looks the same on paper but has the opposite fate.
The Hamilton section defines a Hamilton route as a route through every vertex exactly once.
The clip ends by stressing that although Hamilton sounds like a tiny variation on Euler, it is fundamentally different and much harder.
The segment begins by addressing the difficulty of finding Hamilton circuits. Unlike Euler circuits, which have simple degree-based tests, Hamilton circuits do not. A single vertex with degree 1 or a vertex with too many forced edges can immediately rule out the existence of a Hamilton circuit.
However, there are theorems that provide sufficient conditions. Dirac's theorem states that if every vertex in a graph with n vertices has a degree of at least , then a Hamilton circuit is guaranteed to exist. Ore's theorem provides a similar guarantee based on the sum of degrees of non-adjacent vertices being at least n.
It is crucial to understand that these conditions are sufficient but not necessary. The video uses the cycle graph C5 as an example: it fails both Dirac's and Ore's conditions, yet it is itself a perfect Hamilton circuit.
Moving to computational complexity, the problem of deciding whether an arbitrary graph contains a Hamilton circuit is NP-complete. This places it among the hardest known computational problems, contrasting sharply with the easy decision process for Euler circuits.
The discussion then pivots to weighted graphs. Previously, edges were just connections. Now, each edge is assigned a numerical weight, representing a distance or cost. This leads to the shortest path problem, famously solved by Dijkstra's algorithm.
A specific and famous variant of this is the Traveling Salesperson Problem (TSP), which seeks the shortest possible Hamilton circuit in a weighted graph. The segment concludes by summarizing the core theme: edge-covering problems (Euler) are easy, while vertex-covering problems (Hamilton) are hard, and adding weights introduces optimization challenges like TSP.
This slide summarizes the core difference between edge-traversal and vertex-traversal in graph theory. Euler paths, which visit every edge exactly once, are computationally easy to verify by simply counting vertices with an odd degree. In contrast, Hamiltonian paths, which visit every vertex exactly once, lack a simple test and are NP-complete. The final section introduces the next step in graph theory: adding weights to edges to solve optimization problems like the shortest path using Dijkstra's algorithm, or the shortest tour via the Traveling Salesman Problem.
An Euler route is a route that uses every edge exactly once. The video further distinguishes an Euler circuit, which returns to its starting vertex, from an Euler path, which may end anywhere.
To decide whether a graph has an Euler circuit or an Euler path, count the vertices of odd degree. Zero odd vertices imply an Euler circuit, exactly two imply an Euler path between those two vertices, and more than two imply neither is possible.
Each time a route passes through a vertex internally, it spends two incident edges: one to enter and one to leave. That pairing forces internal vertices in an Euler route to have even degree.
In the displayed house graph, the odd-degree vertices are c and d. Since there are exactly two odd vertices, the graph has an Euler path rather than an Euler circuit.
The video uses the degree test to explain the Königsberg bridges: four odd landmasses mean neither an Euler circuit nor an Euler path is possible, so the seven-bridge walk is impossible.
A Hamilton route is a route through every vertex exactly once. The clip presents this as the vertex-based counterpart to the edge-based Euler problem.
Although Euler and Hamilton sound similar, the video stresses that they are not equivalent in difficulty: Euler is settled by a simple degree count, while Hamilton is described as genuinely hard and “nothing like” Euler.
A route through a graph that visits every vertex exactly once. Unlike Euler circuits, there is no simple degree test to determine its existence.
These theorems provide sufficient (but not necessary) conditions for a Hamilton circuit to exist. Dirac requires min degree >= ; Ore requires non-adjacent degree sums >= n.
Deciding whether a general graph has a Hamilton circuit is an NP-complete problem, making it computationally very difficult compared to Euler circuit checks.
Weighted graphs assign numerical values (distances/costs) to edges. The Traveling Salesperson Problem (TSP) is the task of finding the shortest Hamilton circuit in such a graph.
An Euler path traverses every edge of a graph exactly once. Its existence can be determined instantly by counting the number of vertices with an odd degree; the graph must have either 0 or 2 such vertices.
A Hamiltonian path visits every vertex of a graph exactly once. Unlike the Euler path, there is no simple necessary and sufficient condition; determining its existence is an NP-complete problem, relying only on sufficient conditions like Dirac's or Ore's theorem.
When weights are added to the edges of a graph, the focus shifts to optimization problems. Key examples include finding the shortest path using Dijkstra's algorithm, or finding the shortest tour using the Traveling Salesman Problem (TSP).
Explore conditions, steps and evidence. Supplementary explanations are labeled separately from content shown in the video.
The board text defines EULER as a route using every EDGE exactly once.
The narrator says, “Start with Euler, covering every edge exactly once.”
Euler
A route in a graph that uses every edge exactly once.
Graphs
The board text defines HAMILTON as a route through every VERTEX exactly once.
The narrator says, “Hamilton asks about vertices instead of edges, a route through every vertex exactly once.”
Hamilton
A route in a graph that visits every vertex exactly once.
Graphs
The board text says, “the test: count the ODD-degree vertices” and labels vertices c and d with degree 3.
The narrator says, “Circle the vertices whose degree is odd, and just count them.”
degree
The number of edges incident to a vertex; used here to identify odd-degree vertices.
Vertices in graphs
The house-shaped graph has five vertices labeled a, b, c, d, e.
a, b, c, d, e
Vertex labels in the example house-shaped graph.
Vertices in the example graph
The drawn house graph shows edges ab, bc, cd, da, ac, ce, de.
Edge set is read from the diagram rather than written explicitly on screen.
ab, bc, cd, da, ac, ce, de
Edges of the example house-shaped graph.
Edges in the example graph
Speaker states 'degree at least n over 2' and 'non-adjacent degree sums at least n'.
Text on screen reads 'Dirac (deg >= )' and 'Ore only GUARANTEE'.
n
Number of vertices in the graph
Positive integer
Board text: “EULER: a route using every EDGE exactly once; circuit returns home; a path may end anywhere.”
Narrator: “An Euler circuit comes home to where it started. An Euler path may finish anywhere.”
An Euler route is a route that uses every edge of a graph exactly once. The video distinguishes two cases: an Euler circuit returns to its starting vertex, while an Euler path may end at a different vertex.
The route must use every edge exactly once.
For an Euler circuit, the route returns to the starting vertex.
For an Euler path, the route may end anywhere.
Board text: “HAMILTON: a route through every VERTEX exactly once.”
Narrator: “Hamilton asks about vertices instead of edges, a route through every vertex exactly once.”
A Hamilton route is defined as a route through every vertex exactly once. The video presents this as the vertex-based analogue of the edge-based Euler problem.
The route must pass through every vertex exactly once.
Board text: “the test: count the ODD-degree vertices” and “0 odd → Euler circuit; 2 odd → Euler path; more → neither”.
Narrator: “Zero odd vertices means an Euler circuit. Exactly two odd means an Euler path running between those two. Anything more means neither is possible.”
To decide whether a graph has an Euler circuit or an Euler path, count the vertices of odd degree. If there are zero odd-degree vertices, the graph has an Euler circuit. If there are exactly two odd-degree vertices, the graph has an Euler path between those two vertices. If there are more than two odd-degree vertices, neither an Euler circuit nor an Euler path exists.
The test applies to the graph shown in the video.
The conclusion depends only on the number of odd-degree vertices.
Board text: “why: each pass through a vertex spends 2 edges (in + out) -> even”.
Narrator: “Every time a route passes through a vertex it spends two edges, one to enter and one to leave. So the degrees are forced to come out even.”
Each time an Euler route passes through a vertex in the middle of the route, it uses one edge to enter and one edge to leave. Therefore each such visit consumes two incident edges, so vertices that are only passed through must have even degree.
The argument applies to vertices that are entered and left during the route.
It explains why non-endpoint vertices in an Euler route have even degree.
Opening slide text: “Euler = every EDGE (easy) vs Hamilton = every VERTEX (hard)”.
Narrator: “One turned out dead easy, the other genuinely hard.”
The video contrasts Euler and Hamilton problems by saying they sound similar but differ sharply in difficulty: Euler is easy because it can be decided by a degree count, while Hamilton is hard.
This is a conceptual contrast stated in the recap.
No formal proof of hardness is given in this clip.
Text on screen: 'HAMILTON: a route through every VERTEX exactly once'.
Speaker says 'There is no simple degree test...' referring to Hamilton circuits.
A Hamilton circuit is a route through a graph that visits every vertex exactly once.
Must visit every vertex
Must visit each vertex exactly once
Text on screen: 'Dirac (deg >= ) & Ore only GUARANTEE -- sufficient, not necessary'.
Speaker explains Dirac and Ore give guarantees based on degree conditions.
Dirac's theorem states that if every vertex has degree at least , a Hamilton circuit is guaranteed. Ore's theorem uses non-adjacent degree sums. Both are sufficient but not necessary conditions.
Sufficient condition for Hamilton circuit
Not a necessary condition
Text on screen: 'deciding a Hamilton circuit exists = N-P-complete'.
Speaker states deciding whether a Hamilton circuit exists is NP-complete.
Determining whether an arbitrary graph contains a Hamilton circuit is an NP-complete problem, meaning it is computationally hard.
Applies to general graphs
Text on screen: 'next: hang a WEIGHT on each edge -- a distance or a cost'.
Speaker mentions hanging a number on each edge representing distance or cost.
A weighted graph is a graph where each edge is assigned a numerical value, typically representing a distance, cost, or weight.
Edges have associated numerical values
Text on screen: 'shortest Hamilton = the TSP'.
Speaker identifies the shortest Hamilton circuit as the Traveling Salesperson Problem.
The Traveling Salesperson Problem asks for the shortest possible Hamilton circuit in a weighted graph.
Graph must be weighted
Seeks minimum total weight
EULER (edges) every edge once; decided instantly by counting odd-degree vertices ( / more)
An Euler path traverses every edge of a graph exactly once. Its existence can be determined instantly by counting the number of vertices with an odd degree.
The graph must have either 0 or 2 vertices of odd degree.
HAMILTON (vertices) every vertex once; no easy test -- only obstructions + Dirac/Ore, and it's NP-complete
A Hamiltonian path visits every vertex of a graph exactly once. Unlike the Euler path, there is no simple necessary and sufficient condition; determining its existence is an NP-complete problem.
Only sufficient conditions like Dirac's or Ore's theorem are known to rule out non-existence.
Board text: “0 odd → Euler circuit”.
Narrator: “Zero odd vertices means an Euler circuit.”
The clip does not state connectivity assumptions explicitly.
If a graph has 0 odd-degree vertices, then it has an Euler circuit.
The graph is the type of graph considered in the video's Euler discussion.
For the graph under consideration.
Board text: “2 odd → Euler path”.
Narrator: “Exactly two odd means an Euler path running between those two.”
The clip does not state connectivity assumptions explicitly.
If a graph has exactly 2 odd-degree vertices, then it has an Euler path running between those two vertices.
The graph is the type of graph considered in the video's Euler discussion.
For the graph under consideration.
Board text: “more → neither”.
Narrator: “Anything more means neither is possible.”
If a graph has more than 2 odd-degree vertices, then neither an Euler circuit nor an Euler path is possible.
The graph is the type of graph considered in the video's Euler discussion.
For the graph under consideration.
Board text: “Königsberg's 4 odd masses -> neither -- the walk is impossible”.
Narrator: “That's exactly why Königsberg's four odd landmasses doomed its seven-bridge walk.”
Königsberg's four odd landmasses make the seven-bridge walk impossible.
The Königsberg setup has 4 odd landmasses.
For the Königsberg bridge example mentioned in the video.
Board text: “sounds like Euler -- it is nothing like it”.
Narrator: “It sounds like a tiny variation on Euler. It absolutely is not.”
Although Hamilton sounds like a small variation on Euler, it is fundamentally different.
General comparison stated in the video.
Text on screen: '-- sufficient, not necessary (C5 passes neither)'.
Speaker says 'But those are sufficient, not necessary. The plane five cycle passes neither condition and still has a perfectly good circuit.'
The degree conditions in Dirac's and Ore's theorems guarantee a Hamilton circuit but are not required for one to exist.
Graph satisfies Dirac or Ore conditions
For all graphs
The house graph is drawn with vertices a, b, c, d, e and edges ab, bc, cd, da, ac, ce, de.
The board later marks vertices c and d as the odd ones and labels them with degree 3.
The intermediate degree computation is inferred from the drawn graph rather than written step by step on screen.
Vertex a is incident to edges ab and ad.
Counting incident edges in the drawn graph.
Vertex b is incident to edges ab and bc.
Counting incident edges in the drawn graph.
Vertex c is incident to edges bc, ac, and ce.
Counting incident edges in the drawn graph.
Vertex d is incident to edges cd, ad, and de.
Counting incident edges in the drawn graph.
Vertex e is incident to edges ce and de.
Counting incident edges in the drawn graph.
Only c and d have odd degree.
Comparing the computed degrees with parity.
The example house graph has exactly two odd-degree vertices, namely c and d.
Board text: “why: each pass through a vertex spends 2 edges (in + out) -> even”.
Narrator explains that entering and leaving uses two edges.
A route passing through a vertex uses one edge to come in and one edge to go out.
Stated directly in the video.
Each internal visit consumes two incident edges.
From the enter-and-leave description.
Because the route uses incident edges in pairs at internal vertices, their degrees must be even.
Stated in the video as the reason for the degree test.
Internal vertices in an Euler route must have even degree, which motivates the odd-degree counting test.
A house-shaped graph with vertices a, b, c, d, e is drawn on the board.
The board states: “the test: count the ODD-degree vertices” and “here, two of them are odd (c, d)”.
The narrator applies the rule to this graph and concludes there are two odd vertices.
Determine whether the displayed house-shaped graph has an Euler circuit, an Euler path, or neither.
Graph vertices: a, b, c, d, e.
Edges visible in the diagram: ab, bc, cd, da, ac, ce, de.
Classify the graph using the Euler degree test.
Compute the degree of each vertex from the drawn graph.
Counting incident edges in the diagram.
Identify which vertices have odd degree.
Parity check on the computed degrees.
Apply the video's rule for exactly two odd-degree vertices.
Board rule and narration.
The house graph has an Euler path, running between the two odd-degree vertices c and d.
The result matches the on-screen statement “here, two of them are odd (c, d)” and the rule “2 odd → Euler path”.
Text on screen: '(C5 passes neither)'.
Speaker mentions 'The plane five cycle passes neither condition and still has a perfectly good circuit.'
Does the cycle graph C5 satisfy Dirac's or Ore's conditions for a Hamilton circuit?
C5 is a cycle graph with 5 vertices
Check if Dirac/Ore conditions hold
C5 has 5 vertices, so . Each vertex has degree 2.
Definition of cycle graph
Dirac requires degree >= . Since , Dirac fails.
Dirac's theorem condition
Ore requires sum of degrees of non-adjacent vertices >= 5. In C5, max sum is , so Ore fails.
Ore's theorem condition
Despite failing both, C5 is itself a Hamilton circuit.
Definition of Hamilton circuit
C5 passes neither condition but still has a Hamilton circuit.
Direct observation of C5 structure confirms it is a single cycle visiting all vertices.
A title slide reads “Euler & Hamilton”, “every edge, or every vertex”, and “Euler = every EDGE (easy) vs Hamilton = every VERTEX (hard)”.
Title text
Subtitle text
Comparison line
Quote box
The slide remains static while the narrator introduces the two problems.
The visual contrast between EDGE and VERTEX stays fixed.
The opening slide frames the whole clip as a comparison between Euler and Hamilton problems.
A chalkboard-style scene shows a house-shaped graph and Euler definitions.
Around 51 seconds, red circles appear around vertices c and d and the text “here, two of them are odd (c, d)” is added.
House-shaped graph
Vertex labels a, b, c, d, e
Euler definition text
Odd-degree annotation
Rule box
The graph is introduced first.
Then the odd-degree vertices c and d are highlighted.
Then the rule box and explanatory text appear.
The underlying graph structure does not change during the Euler section.
The visual sequence demonstrates how the degree test is applied to a concrete graph.
A cream slide appears with “THE TWIN”, “Same look, opposite fate”, and “every vertex instead of every edge -- and the difficulty flips completely”.
Title text
Subtitle text
Divider line
The scene switches from the chalkboard Euler example to a new title card.
The message contrasts similarity of wording with difference in difficulty.
This slide signals the conceptual pivot from edge-covering to vertex-covering.
A new chalkboard scene shows a diamond-shaped graph with a cross inside and Hamilton definition text.
Diamond graph with internal cross
Hamilton definition text
Comparison text to Euler
The board introduces the Hamilton definition and immediately contrasts it with Euler.
No worked Hamilton example is completed within this clip.
The final visual establishes Hamilton as the vertex-based counterpart and emphasizes that it is not merely a small variant of Euler.
A graph with 4 vertices and 5 edges is shown. Later, weights (numbers) appear on the edges of a similar graph.
Unweighted graph
Weighted graph
Edges gain numerical weights
Vertices remain the same
Illustrates the shift from unweighted connectivity to weighted optimization problems.
A static summary slide titled 'Every edge easy, every vertex hard' displaying three text boxes comparing Euler paths, Hamiltonian paths, and future topics on weighted graphs.
Title text
Three informational text boxes
The visual layout and text remain completely static throughout the 2-second clip.
The slide visually contrasts the computational difficulty of edge-based traversal (Euler) versus vertex-based traversal (Hamilton), and previews the transition to weighted graph algorithms.
Opening quote: “Two puzzles that sound like twins -- one settled by a glance at the degrees, the other among the hardest we know.”
Narrator: “on paper they sounded almost identical.”
Because Euler and Hamilton are phrased similarly, one might think they are nearly the same problem.
The video stresses that they only sound alike; Euler is easy via a degree count, while Hamilton is genuinely hard.
Board text: “sounds like Euler -- it is nothing like it”.
Narrator: “It sounds like a tiny variation on Euler. It absolutely is not.”
One might think replacing “edge” with “vertex” creates only a small variation.
The video explicitly rejects this: Hamilton is presented as fundamentally different in difficulty and behavior.
Text on screen: 'NO simple degree test.'
Speaker starts by saying 'There is no simple degree test...'
One might assume there is a simple degree-based test to determine if a Hamilton circuit exists, similar to Euler circuits.
No such simple test exists; only obstructions and sufficient conditions like Dirac/Ore are available, and the problem is NP-complete.
Same-looking questions, opposite difficulty
Assuming that because Euler and Hamilton path problems look similar (both involve traversing a graph without repetition), they share the same computational difficulty.
Euler paths are easy to decide (polynomial time via odd-degree counting), whereas Hamiltonian paths are NP-complete, representing opposite levels of computational difficulty.
The Euler section introduces the odd-degree counting test.
The narrator says the entire question is settled by a degree count.
The degree-count method is applied to decide the existence of Euler circuits and Euler paths.
The board gives the reason “each pass through a vertex spends 2 edges (in + out) -> even”.
The parity explanation supports why the odd-degree counting test works for Euler routes.
Opening slide contrasts “every EDGE (easy)” with “every VERTEX (hard)”.
Final board says Hamilton “sounds like Euler -- it is nothing like it”.
The video repeatedly contrasts Euler's edge-based problem with Hamilton's vertex-based problem.
The house graph is used while the Euler rule is explained.
The board marks c and d as the odd vertices in this example.
The house graph example illustrates how the Euler degree test is used in practice.
Text on screen: 'Every edge easy, every vertex hard' and comparison table between EULER and HAMILTON.
Speaker contrasts Euler (easy, edge-focused) with Hamilton (hard, vertex-focused).
Euler circuits (covering edges) are easy to decide, while Hamilton circuits (covering vertices) are hard (NP-complete).
Every edge easy, every vertex hard
The video explicitly contrasts the instant decidability of Euler paths based on vertex degrees with the NP-complete nature of Hamiltonian paths.
and next, every edge carries a weight.
The concepts of graph traversal are extended by applying weights to edges, leading to optimization algorithms like Dijkstra's and the TSP.
Board text defines EULER.
Board text defines HAMILTON.
Board text gives the rule 0 odd, 2 odd, more.
Board text explains in + out -> even.
The house graph and odd-vertex annotation are shown.
Board text mentions Königsberg's 4 odd masses.
Opening slide and final board contrast easy Euler with hard Hamilton.
Text on screen: 'deciding a Hamilton circuit exists = N-P-complete'.
Text on screen: 'Dirac (deg >= ) & Ore only GUARANTEE'.
decided instantly by counting odd-degree vertices ( / more)
no easy test -- only obstructions + Dirac/Ore, and it's NP-complete
Covered · Opening comparison of Euler and Hamilton problems.
Covered · Euler definitions, degree test, worked house-graph example, parity explanation, and Königsberg remark.
Covered · Transition slide contrasting the twin-looking problems.
Covered · Hamilton definition and explicit contrast with Euler.
Covered · Introduction to Hamilton circuits, lack of simple tests, and Dirac/Ore theorems.
Covered · Statement that Hamilton circuit existence is NP-complete.
Covered · Transition to weighted graphs and introduction of the Traveling Salesperson Problem.
Covered · Summary contrasting Euler and Hamilton problems and preview of next topic.
Covered · The entire 2-second clip consists of a static summary slide with a brief audio snippet, all of which has been extracted.
Reviewed subject paths