An Eulerian path is a path that traverses every edge only once in a graph. Being a path, it does not have to return to the starting vertex.
Let’s look at the below graph.
There are multiple Eulerian paths in the above graph. One such Eulerian path is ZXYOZY
.
An Eulerian circuit is a circuit that traverses every edge only once in a graph. Being a circuit, the starting and ending node of the traversal should be the same.
Let’s look at the below graph.
There are multiple Eulerian circuits in the above graph. One such Eulerian circuit is BCDBEDAB
.