• Tidak ada hasil yang ditemukan

Eulerian and Hamiltonian Graphs

N/A
N/A
Protected

Academic year: 2025

Membagikan "Eulerian and Hamiltonian Graphs"

Copied!
17
0
0

Teks penuh

(1)

Presented by

Dr. Akul Rana, Narajole Raj College

(2)

Euler Graphs

A closed walk in a graph G containing all the edges of G is called an Euler line in G. A graph containing an Euler line is called an Euler graph.

We know that a walk is always connected. Since the Euler

line (which is a walk) contains all the edges of the graph, an

Euler graph is connected except for any isolated vertices the

graph may contain. As isolated vertices do not contribute

anything to the understanding of an Euler graph, it is

assumed now onwards that Euler graphs do not have any

isolated vertices and are thus connected.

(3)

Euler Graph

(4)

Non-Eulerian Graph

(5)

Theorem (Euler) A connected graph G is an Euler graph if and only if all vertices of G are of even degree.

Proof: (Necessity) Let G(V, E) be an Euler graph.

Thus G contains an Euler line Z, which is a closed walk. Let this walk start and end at the vertex u ϵV.

Since each visit of Z to an intermediate vertex v of Z

contributes two to the degree of v and since Z

traverses each edge exactly once, d(v) is even for every

such vertex. Each intermediate visit to u contributes

two to the degree of u, and also the initial and final

edges of Z contribute one each to the degree of u. So

the degree d(u) of u is also even.

(6)

(Sufficiency) Let G be a connected graph and let degree of each vertex of G be even.

Assume G is not Eulerian and let G contain least number of edges. Since d 2, G has a cycle. Let Z be a closed walk in G of maximum length.

Clearly, G−E(Z) is an even degree graph. Let C

1

be one of the components of G−E(Z). As C

1

has less number of edges than G, it is Eulerian and has a vertex v in common with Z. Let Z’ be an Euler line in C

1

. Then Z’ᴗ Z is closed in G, starting and ending at v. Since it is longer than Z, the choice of Z is contradicted. Hence G is Eulerian.

Contd...

(7)

Theorem: A connected graph is Eulerian if and only if each of its edges lies on an odd number of cycles.

Proof: Necessity Let G be a connected Eulerian graph and let e = uv be any edge of G. Then G−e is a u−v walk W, and so G−e =W contains an odd number of u−v paths. Thus each of the odd number of u−v paths in W together with e gives a cycle in G

containing e and these are the only such cycles. Therefore there are an odd number of cycles in G containing e.

Sufficiency Let G be a connected graph so that each of its edges lies on an odd number of cycles. Let v be any vertex of G and Ev = {e1, . . . , ed} be the set of edges of G incident on v, then |Ev| = d(v)

= d. For each i, 1 ≤ i≤ d, let ki be the number of cycles of G containing ei. By hypothesis, each ki is odd. Let c(v) be the number of cycles of G containing v.

Then clearly, c(v) = implying that , 2c(v) =

Since 2c(v) is even and each ki is odd, d is even. Hence G is Eulerian.

(8)

Hamiltonian Graphs:

A cycle passing through all the vertices of a graph is called a Hamiltonian cycle. A graph containing a Hamiltonian cycle is called a Hamiltonian graph.

Hamiltonian graphs are named after Sir William Hamilton, an Irish Mathematician (1805−1865), who invented a puzzle, called the Icosian game, which he sold for 25 guineas to a game manufacturer in Dublin. The puzzle involved a dodecahedron on which each of the 20 vertices was labelled by the name of some capital city in the world. The aim of the game was to construct, using the edges of the dodecahedron a closed walk of all the cities which traversed each city exactly once, beginning and ending at the same city. In other words, one had essentially to form a Hamiltonian cycle in the graph corresponding to the dodecahedron.

(9)

Dedecahedron and its graph shown with the

Hamiltonian cycle

(10)

Graph Representation in Memory

 There are several possibilities to represent a graph

G = (V, E) in memory of the computer.

1. Adjacency Matrix

2. Incidence Matrix

(11)

Adjacency Matrix

Let the set of nodes be V = {1, 2, . . . , n}

with edges E ⊆ V × V , and let m := |E|.

The adjacency matrix of a graph G = (V, E) is a |V | × |V | matrix A, where each entry a

ij

is equal to 1 if there exists an edge e = (v

i

, v

j

) ∈ E and 0 otherwise. In case a weighted graph is given, then a

ij

= w(v

i

, v

j

) .

(12)

The adjacency matrix of the graph depicted above is

A.Rana, Narajole Raj College, Sem-IV, SEC2T,

(13)

Incidence Matrix

 The incidence matrix of a graph gives

the (0,1)-matrix which has a row for each

vertex and column for each edge,

and iff vertex is incident upon edge .

However, some authors define the incidence

matrix to be the transpose of this, with a

column for each vertex and a row for each

edge. The physicist Kirchhoff (1847) was the

first to define the incidence matrix.

(14)
(15)

Weighted Graph

A weighted graph is a graph in which

each branch is given a

numerical weight. A weighted graph is

therefore a special type of labeled

graph in which the labels are numbers

(which are usually taken to be

positive).

(16)
(17)

Referensi

Dokumen terkait

“Close” stations means vertices with distance two apart on the graph, while “very close” stations means adjacent vertices on the graph.. Practically, interference among channels

In this note, we have introduced the notion of Gallai and anti-Gallai total graphs, and have investigated the Eulerian and Hamiltonian properties of these graph operators. Further,

Edge graceful labeling: An edge graceful labeling on a simple graph no loops or multiple edges on p-vertices and q- edges is a labeling of the edges by distinct integers in {1……..q}

Facts about trees Definition: A tree is a connected acyclic graph Fact 1: A tree on n vertices has exactly n-1 edges Start with a tree and delete edges Initially one single component

Definition: In-Degree and Out-Degree Definition In a graph with directed edges thein-degreeof a vertex v, denoted by deg−v, is the number of edges with v as their terminal vertex..

Kruskal’s Algorithm procedure Kruskal G: weighted connected undirected graph withn vertices T := empty tree list := list of edges ofG sorted by weight while T has less than n−1 edges

Proposition The graph G has exactly150 connected components, and each connected component is isomorphic to the triangular graph T7, which is srg21,10,5,4... LetD denote the set of

OR ● If there exists a walk in the connected graph that starts and ends at the same vertex and visits every edge of the graph exactly once with or without repeating the vertices, then