Welcome to fletrix.com on July 10 2009.
This is an internet experiment running to monitor browsing habbits of individuals through wikipedia contents.

Eulerian path

From Wikipedia, the free encyclopedia

Jump to: navigation, search
The Königsberg Bridges graph. This graph is not Eulerian, therefore, a solution does not exist.
Every vertex of this graph has an even degree, therefore this is an Eulerian graph. Following the edges in alphabetical order gives an Eulerian circuit/cycle.

In graph theory, an Eulerian path is a path in a graph which visits each edge exactly once. Similarly, an Eulerian circuit is an Eulerian path which starts and ends on the same vertex. They were first discussed by Leonhard Euler while solving the famous Seven Bridges of Königsberg problem in 1736. Mathematically the problem can be stated like this:

Given the graph on the right, is it possible to construct a path (or a cycle, i.e. a path starting and ending on the same vertex) which visits each edge exactly once?

Graphs which allow the construction of so called Eulerian circuits are called Eulerian graphs. Euler observed that a necessary condition for the existence of Eulerian circuits is that all vertices in the graph have an even degree, and that for an Eulerian path either all, or all but two (i.e., the two endpoint) vertices have an even degree; this means the Königsberg graph is not Eulerian. Sometimes a graph that has an Eulerian path, but not an Eulerian circuit (in other words, it is an open path, and does not start and end at the same vertex) is called semi-Eulerian.

Carl Hierholzer published the first complete characterization of Eulerian graphs in 1873, by proving that in fact the Eulerian graphs are exactly the graphs which are connected and where every vertex has an even degree.

Contents

[edit] Definition

An Eulerian path, Eulerian trail or Euler walk in an undirected graph is a path that uses each edge exactly once. If such a path exists, the graph is called traversable or semi-eulerian.

An Eulerian cycle, Eulerian circuit or Euler tour in an undirected graph is a cycle that uses each edge exactly once. If such a cycle exists, the graph is called Eulerian or unicursal. The cycle starts and ends at the same vertex.

For directed graphs path has to be replaced with directed path and cycle with directed cycle.

The definition and properties of Eulerian paths, cycles and graphs are valid for multigraphs as well.

[edit] Notes

Some people reserve the terms path and cycle to mean non-self-intersecting path and cycle. A (potentially) self-intersecting path is known as a trail or an open walk; and a (potentially) self-intersecting cycle, a circuit or a closed walk. This ambiguity can be avoided by using the terms Eulerian trail and Eulerian circuit when self-intersection is allowed.

[edit] Properties

  • A connected undirected graph is Eulerian if and only if every graph vertex has an even degree.
  • An undirected graph is Eulerian if it is connected and can be decomposed into edge-disjoint cycles.
  • If an undirected graph G is Eulerian then its line graph L(G) is Eulerian too.
  • A directed graph is Eulerian if it is connected and every vertex has equal in degree and out degree.
  • A directed graph is Eulerian if it is connected and can be decomposed into edge-disjoint directed cycles.
  • An undirected graph is traversable if it is connected and at most two vertices in the graph are of odd degree.

[edit] Constructing Eulerian paths and cycles

Consider a graph known to have all edges in the same component and at most two vertices of odd degree. We can construct an Eulerian path (not a cycle) out of this graph by using Fleury's algorithm, which dates to 1883. We start with a vertex of odd degree—if the graph has none, then start with any vertex. At each step we move across an edge whose deletion would not disconnect the graph, unless we have no choice, then we delete that edge. At the end of the algorithm there are no edges left, and the sequence of edges we moved across forms an Eulerian cycle if the graph has no vertices of odd degree or an Eulerian path if there are two vertices of odd degree.

The definition of a Hamiltonian path is very similar (a Hamiltonian path visits every vertex exactly once, while an Eulerian path visits every edge exactly once). In practice, however, it is much more difficult to construct a Hamiltonian path or determine whether a graph is Hamiltonian, as that problem is NP-complete.

[edit] Constructing Eulerain graphs for a given partition of p

For a frequency partition p = f1 + f2 + ... + fk of an integer p > 1, its graphic degree sequence is denoted as ((d1)f1,(d2)f2, (d3)f3, ..., (dk) fk) where degrees di's are different and fifj for i < j. Bhat-Nayak et al. (1979) showed that a partition of p with k parts, k ≤ integral part of (p − 1) / 2 is a frequency partition [1] of an Eulerian graph and conversley. The graphic degree sequences of the partitions are:

  • For p = 4m \equiv 0 \pmod 4\, , ...(2m + 2)f3,(2m)f1,(2m - 2)f2, ... , example, for 12 = 5 + 4 + 3, the Eulerian degree sequence is 83,65,44.
  • For p = 4m \equiv 1 \pmod 4\,, ...(2m + 2)f2,(2m)f1,(2m - 2)f3, ... , example, for 13 = 6 + 4 + 3, the Eulerian degree sequence is 84,66,43.
  • For p = 4m \equiv 2 \pmod 4\,, ...(2m + 2)f2,(2m)f1,(2m - 2)f3, ... , example, for 14 = 6 + 5 + 3, the Eulerian degree sequence is 85,66,43.
  • For p = 4m \equiv 3 \pmod 4\,, ...(2m + 4)f3,(2m + 2)f1,(2m)f2, ... , example, for 15 = 6 + 5 + 4, the Eulerian degree sequence is 104,86,65.

[edit] Counting Eulerian circuits

The number of Eulerian circuits in digraphs can be calculated using the so called BEST-theorem, named after de Bruijn, van Aardenne-Ehrenfest, Smith and Tutte.

Given an Eulerian digraph G := (VE), the number of non-equivalent Eulerian circuits in the graph is

C \prod_{v \in V}(\deg^+(v)-1)!

or equivalently

C \prod_{v \in V}(\deg^-(v)-1)!

with C any cofactor of the Laplacian matrix of G.

Counting the number of Eulerian circuits on undirected graphs is much more difficult; it is known to be #P-complete.[2]

The asymptotic number of Eulerian Circuits in the complete graph was determined by McKay & Robinson.

[edit] See also

  • The handshaking lemma, proven by Euler in his original paper, showing that any undirected connected graph has an even number of odd-degree vertices

[edit] Notes

  1. ^ Vasanti N. Bhat-Nayak, Ranjan N. Naik and S. B. Rao, Characterization of Frequency Partitions of Eulerian Graphs – ISI Lecture Notes No. 4 (Edited A R Rao) Proc. Symposium on graph Theory, Published by The MacMillan comp. of India Ltd 1979. Also in Lecture Notes in Mathematics, Combinatorics and Graph Theory, Springer-Verlag, New York, Vol. 885 (1980), p 500.
  2. ^ Brightwell and Winkler, "Note on Counting Eulerian Circuits", 2004.

[edit] References

  • Euler, L., "Solutio problematis ad geometriam situs pertinentis", Comment. Academiae Sci. I. Petropolitanae 8 (1736), 128-140.
  • Hierholzer, C., "Über die Möglichkeit, einen Linienzug ohne Wiederholung und ohne Unterbrechnung zu umfahren", Mathematische Annalen 6 (1873), 30-32.
  • Lucas, E., Récréations Mathématiques IV, Paris, 1921.
  • Fleury, "Deux problemes de geometrie de situation", Journal de mathematiques elementaires (1883), 257-261.

[edit] External links

Personal tools

Visit joltnews for the latest headlines
Visit bloit.com for company information
Geed Media does computer consulting on long island.
This page viewed times. See Logs