Questions tagged [eulerian-path]

This tag is for questions relating to Eulerian paths in graphs. An "Eulerian path" or "Eulerian trail" in a graph is a walk that uses each edge of the graph exactly once. An Eulerian path is "closed" if it starts and ends at the same vertex.

In graph theory, the study of an Eulerian trail (or Eulerian path) came up in their relation by Leonhard Euler while solving the famous Seven Bridges of Königsberg problem in 1736.

An Eulerian path is a trail in a graph which visits every edge exactly once.

For the existence of Eulerian trails it is necessary that zero or two vertices have an odd degree. If there are no vertices of odd degree, all Eulerian trails are circuits. If there are exactly two vertices of odd degree, all Eulerian trails start at one of them and end at the other. A graph that has an Eulerian trail but not an Eulerian circuit is called semi-Eulerian.

Example:

enter image description here

  • The Euler Circuit (when the starting vertex of the Euler path is also connected with the ending vertex of that path) is a special type of Euler path.

Applications: Eulerian trails are used in bioinformatics to reconstruct the DNA sequence from its fragments. They are also used in CMOS circuit design to find an optimal logic gate ordering. There are some algorithms for processing trees that rely on an Euler tour of the tree (where each edge is treated as a pair of arcs). The Gray code used for error detection and correction can be constructed as an Eulerian trail of de Bruijn graphs.

Reference:

https://en.wikipedia.org/wiki/Eulerian_path

https://brilliant.org/wiki/eulerian-path/

293 questions
36
votes
12 answers

Is it possible to draw this picture without lifting the pen?

Some days ago, our math teacher said that he would give a good grade to the first one that will manage to draw this: To draw this without lifting the pen and without tracing the same line more than once. It's a bit like the "nine dots" puzzle but…
35
votes
11 answers

How do I explain the Königsberg Bridge problem to a child?

I am going to demonstrate the Königsberg seven bridge problem in a science exhibition. I am also going to use a model for a more visual representation of the problem. Now, how do I explain this (the solution) simply to a child who is not too much…
13
votes
2 answers

Proof : cannot draw this figure without lifting the pen

This question maybe ridiculous but I always found it interesting... Here it is : (I cannot put image so I put you the link of the pictures) When I was in school I used to draw houses when I was bored : You can draw it without lifting the pen. But…
ALM
  • 387
  • 2
  • 6
  • 19
12
votes
3 answers

Proving that a Euler Circuit has a even degree for every vertex

Theorem: Given a graph G has a Euler Circuit, then every vertex of G has a even degree Proof: We must show that for an arbitrary vertex v of G, v has a positive even degree. What does it mean by every even degree? When I think of an even…
9
votes
1 answer

Euler path for directed graph?

How do we find Euler path for directed graphs? I don't seem to get the algorithm below! Algorithm To find the Euclidean cycle in a digraph (enumerate the edges in the cycle), using a greedy process, Preprocess the graph and make and in-tree with…
8
votes
3 answers

Prove that Petersen's graph is non-planar using Euler's formula

Prove that Petersen's graph is non-planar using Euler's formula. I know that $n - m + f = 2$. But should I count $f$ and prove that the summation does not equal to two or solve to get $f =7$ and argue that it is impossible???
James
  • 83
  • 1
  • 1
  • 3
8
votes
2 answers

An ant walks on a cube over the diagonals of little cubes. Can it visit all little faces exactly once?

I have got this task at high-school math-contest seminar. The theme is graphs. Let us have $n \in \mathbb{N}$ and the cube $ n \times n \times n$. An ant can go over a diagonal of little cubes, but it can't turn at the intersection of two little…
7
votes
3 answers

Sufficient condition for graph isomorphism assuming same degree sequence

We assume graph to be simple undirected. In general, having the same degree sequence is not sufficient for two graphs to be isomorphic. A trivial example is a hexagon which is connected and two separated triangles, which is obviously not connected,…
7
votes
2 answers

Does Eulerian cycle in digraph really need strongly connected component?

I read that a directed graph has an Eulerian cycle if and only if every vertex has equal in degree and out degree, and all of its vertices with nonzero degree belong to a single strongly connected component. But I think that if every vertex has…
6
votes
1 answer

Is it possible to go over all lines of a grid with a pencil without lifting it or going over a drawn line?

Is it possible to go over all lines of an infinite grid with a pencil without lifting it or going over a drawn line ? The pencil can cross through a segment already drawn but cannot go over an already drawn line. After doodling around, I have the…
6
votes
1 answer

Properties of prime sum graphs

The prime sum graph $P_n$ on the vertex set $V = \{1,\dots, n\}$ has an edge $e = xy$ when $x+y$ is prime. It is easy to show that any such $P_n$ is bipartite (put odd numbers in one part and evens in the other). Thus, for a Hamilton cycle to exist,…
6
votes
1 answer

How many Hamiltonian circuits are there in a complete graph with n vertices?

How many Hamiltonian circuits are there in a complete, undirected and simple graph with $n$ vertices? The answer written in my book is: $$\frac{\left(n-1\right)!}{2}$$ What is the combinatorial explanation to this? My best shot was to try to count…
Ilya.K.
  • 1,298
6
votes
1 answer

A connected simple graph $G$ has $14$ vertices and $88$ edges. Prove $G$ is Hamiltonian, but not Eulerian.

A connected simple graph $G$ has $14$ vertices and $88$ edges. Prove $G$ is Hamiltonian, but not Eulerian. I almost feel like you have to prove these two parts separately. I understand that to be Hamiltonian a vertex tour (a path in which all…
5
votes
2 answers

How can one justify if the graph is planar from adjacency matrix?

Given an adjacency matrix of a graph $G$, I was asked to do the following without drawing the graph: A) Find the vertex of largest degree. B) Does the graph have an Euler Circuit? C) Is the graph Planar? I did A and B. How can one justify if the…
5
votes
3 answers

Is it possible disconnected graph has euler circuit?

I have doubt ! Wikipedia says : An Eulerian graph is one in which all vertices have even degree; Eulerian graphs may be disconnected. What I know : Defitition of an euler graph "An Euler circuit is a circuit that uses every edge of a graph…
hululu
  • 4,913
1
2 3
19 20