Amazingly, it is possible to determine if an undirected network will have an Euler trail or circuit without having to actually find it. Here’s how to tell:
If a walk that includes every edge has exactly two vertices of odd degree, then it is an Eulerian trail.
If a walk that includes every edge has only vertices of even degree, then it is an Eulerian circuit.
Still, it can take some practice to get proficient at being able to find Euler paths or Euler circuits-knowing they exist is not the same as seeing one in front of you. To help us we are going to us a procedure called Fleury's Algorithm (pronounced flur-ee). It was first published by a French mathematician named Fleury in 1883 (his given name seems to be lost to history).
Make sure the graph has either 0 or 2 vertices with odd degree.
If there are no edges with odd degree, start anywhere. If there are 2, pick one of them to start from.
Follow edges one at a time, eliminating the edges you pick from the network as you go.
If you have a choice between a bridge and a non-bridge from the remaining edges, always choose the non-bridge.
Stop when you run out of edges.
Seems simple enough-let’s try it out:
This algorithm will find the Euler trail (or circuit) every time. It helps best in the tricky situations where you don’t know which edge to pick-if you choose a bridge before a non-bridge you won’t be able to get back.
For directed networks, we can still have Euler trails and Euler circuits, but there’s no easy way to find them like there is for undirected networks, you just have to give it a go. Imagine the below directed network represents a garbage collection model:
Can you find the Euler circuit now you know Fleury's algorithm? Since you’re looking for a circuit, it doesn’t matter which vertex you start from. Use the Hamiltonian cycle we found earlier to help you.
One final note before we finish this section: a network can be a traversable/Euler network, a traceable/Hamiltonian network, both, or neither, as these examples demonstrate:
The first is an Euler and a Hamiltonian network, the second is only a Hamiltonian network, the third is only an Euler network, and the fourth is neither.
Traceable vs traversable:
A network is traceable if there is a path that visits every vertex, and Hamiltonian if you can do it with a cycle (closed path).
A network is traversable if there is a trail that uses every edge, and Eulerian if you can do it with a circuit (closed trail).
Consider the network below:
Does the network have an Euler trail? Does it have an Euler circuit?
Using Fleury's algorithm, which vertex or vertices can the trail start at? Select all correct options:
Beth has started to trace an Euler trail through the graph, by moving along the vertices B, \, C, \, D. According to Fleury's algorithm, which vertices are possible to travel to next along such a trail? Select all the correct options.
Write a Euler trail for the network that completes Beth's journey.
Fleury’s algorithm:
Make sure the graph has either 0 or 2 vertices with odd degree.
If there are no edges with odd degree, start anywhere. If there are 2, pick one of them to start from.
Follow edges one at a time, eliminating the edges you pick from the network as you go.
If you have a choice between a bridge and a non-bridge from the remaining edges, always choose the non-bridge.
Stop when you run out of edges.
Traceable vs traversable:
A network is traceable if there is a path that visits every vertex, and Hamiltonian if you can do it with a cycle (closed path).
A network is traversable if there is a trail that uses every edge, and Eulerian if you can do it with a circuit (closed trail).