Nepedia
Back to Discover
Advanced Reader
🔢

Eulerian path

math Maturity 11-13 Next article →

In the field of graph theory, mathematicians study networks of points and lines. These networks are called graphs. The points where lines meet are called vertices, and the lines themselves are called edges. An Eulerian trail is a specific type of path through a graph. It is a sequence of edges that visits every single edge in the graph exactly once. While you can visit the same vertex multiple times, you can never reuse an edge.

Eulerian path puzzles
Eulerian path puzzles

There are different types of Eulerian paths depending on where they begin and end. If the trail starts and ends at the same vertex, it is called an Eulerian circuit or an Eulerian cycle. A graph that contains such a cycle is known as an Eulerian graph. If a graph has an Eulerian trail that is not a circuit, it is called semi-Eulerian. In this case, the path must start at one vertex and end at a different one.

Labelled Eulergraph
Labelled Eulergraph

To understand if these paths exist, we must look at the degree of each vertex. The degree is the number of edges connected to that specific vertex. For an undirected graph to have an Eulerian circuit, every vertex must have an even degree. This is because every time a path enters a vertex, it must also leave it using a different edge. For an Eulerian trail to exist, the graph must have either zero or exactly two vertices with an odd degree. If there are exactly two odd vertices, the trail must start at one and end at the other.

The history of this concept began in 1736 with Leonhard Euler. He was investigating the Seven Bridges of Königsberg problem. The puzzle asked if a person could walk through the city crossing each of its seven bridges exactly once. By modeling the city as a graph, Euler proved that such a walk was impossible because the vertices did not have even degrees. While Euler identified the necessary conditions for these paths, he did not provide a full proof for all cases. It was not until 1873 that Carl Hierholzer published the first complete proof regarding the sufficiency of these conditions.

Mathematicians use specific algorithms to find these paths. Fleury's algorithm, created in 1883, is one method. It involves choosing edges one by one, ensuring that the chosen edge does not disconnect the graph unless no other choice remains. However, Fleury's algorithm is considered inefficient. A much faster method is Hierholzer's algorithm. This method works by finding a small closed tour and then finding additional loops from vertices within that tour. These smaller loops are then joined together to form one large Eulerian circuit.

Labelled Eulergraph
Labelled Eulergraph

These mathematical concepts have important modern applications. In bioinformatics, scientists use Eulerian trails to reconstruct DNA sequences from many small fragments. In computer engineering, they help in CMOS circuit design to find the best ordering for logic gates. Even in very large systems, these rules apply. For example, in directed graphs, an Eulerian cycle exists if every vertex has an equal in-degree and out-degree. This means the number of edges entering a vertex must match the number of edges leaving it.

Even when graphs are infinite, the concept continues through the Eulerian line. An Eulerian line is a doubly-infinite trail that covers every edge in an infinite graph. For this to exist, the graph must be connected and have a countable number of vertices and edges. It also requires that all vertices have even degrees. An infinite graph can fail to have an Eulerian line even if all its vertices have an even degree, such as in the Cayley graph.

Kely graph of F2 clear
Kely graph of F2 clear

Understanding these paths allows us to solve complex problems in both tiny biological structures and massive mathematical networks.

623 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.