Nepedia
Back to Discover
Fluent Reader
🔢

Eulerian path

math Maturity 11-13 Next article →

Have you ever tried to draw a shape without lifting your pen?

Eulerian path puzzles
Eulerian path puzzles

Imagine a puzzle where you must trace every single line exactly once. You cannot go over any line a second time. This special path is called an Eulerian trail. If you manage to start and end at the same spot, it is called an Eulerian circuit.

Labelled Eulergraph
Labelled Eulergraph

These ideas help us understand how to move through networks of points and lines. We use the word "graph" to describe these connections. In a graph, the points where lines meet are called vertices. The lines themselves are called edges.

To find these paths, we look at the degree of each vertex. The degree is simply the number of edges connected to that point.

For an Eulerian circuit to exist, every single vertex must have an even degree. This is because every time you enter a vertex, you need an unused edge to leave it. If a graph has an Eulerian trail that is not a circuit, it is called semi-Eulerian. For this to happen, exactly zero or two vertices must have an odd degree. If there are two odd vertices, you must start at one and you will end at the other.

This math began with a famous puzzle in 1736.

A man named Leonhard Euler studied the Seven Bridges of Königsberg. He wanted to know if someone could walk through the city crossing every bridge exactly once. Euler proved that a circuit needs all vertices to have an even degree. He also stated that connected graphs with even degrees have a circuit. A man named Carl Hierholzer published the first complete proof of this later in 1873. This helped turn Euler's ideas into a solid mathematical rule.

There are different ways to find these paths using math rules. One way is called Fleury's algorithm, which was created in 1883. It works by choosing edges carefully so you do not disconnect the graph too early. Another way is Hierholzer's algorithm, which is much faster. It works by finding small loops and joining them together into one big tour.

Labelled Eulergraph
Labelled Eulergraph

Scientists also use these ideas in many modern ways. For example, experts in bioinformatics use Eulerian trails to help reconstruct DNA sequences from tiny fragments. They can also use these paths to design computer circuits.

Even when graphs are infinite, these rules still matter. An infinite graph might have an "Eulerian line." This is a path that goes on forever in both directions and covers every edge.

Kely graph of F2 clear
Kely graph of F2 clear

For this to work, the graph must be connected and have no odd degrees. It also must follow specific rules about how it can be divided. Whether we are looking at a small drawing or a huge network, these patterns help us find the best way to travel. Math lets us see the hidden paths in the world around us.

478 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (8)
File:Comparison_7_bridges_of_Konigsberg_5_room_puzzle_graphs.svg
Comparison_7_bridges_of_Konigsberg_5_room_...
File:Labelled Eulergraph.svg
Labelled Eulergraph.svg
File:Eulerian_path_puzzles.svg
Eulerian_path_puzzles.svg
File:Kely graph of F2 clear.svg
Kely graph of F2 clear.svg
File:Even directed graph that is not Eulerian counterexample.svg
Even directed graph that is not Eulerian...
File:Eulerian mixed graph that is even but not symmetric proving that evenness and symmetricness is not a necessary and sufficient condition for a mixed graph to be Eulerian.svg
Eulerian mixed graph that is even but not...
File:Even mixed graph that violates the balanced set condition and is therefore not Eulerian.svg
Even mixed graph that violates the...
File:Even mixed graph satisfies the balanced set condition and is therefore an Eulerian mixed graph.svg
Even mixed graph satisfies the balanced...
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.