Hamiltonian Graphs
Hamiltonian Graphs
once
Hamiltonian
graphs
Group 10
Members
Smriti Dwivedi (21BCY10189)
K Lokesh Pavan Kumar (21BCY10187)
Rahul Shashikant Maurya (21BCY10192)
S Yohid Althaf (21BCY10242)
Sarthak Nalamwar (21BCY10252)
Sourav Dutta (21BHI10002)
Introduction
What IS a
Hamiltonian Graph
History
later.
When There is a
Hamiltonian Path Only
1. Graph containing a vertex of degree 1.
When there exists a Graph with a vertex of Degree 1,
there can exist a Hamiltonian path but there cannot be
a Hamiltonian circuit because the vertex is not
connected to a unique vertex not in the Hamiltonian
path.
In the given Figures, there cannot be a Hamiltonian
Circuit Due to there being a vertex of Degree 1.
These Graphs also do not obey Ore's/ Dirac's Theorem.
Fig. Graphs with vertex of Degree 1.
When a graph doesnt
have a Hamiltonian path
Ore's Theorem :
statement : if G is a simple graph with 'n' vertices
(n>=3) such that for every pair of non adjacent
vertices u and v, deg(u) + deg(v) >= n .
where n is the number of vertices in graph G .
ORE'S THROEREM 14
Proof of Ore's Theorem
By construction G is the graph with the most possible edges that does not
contain a Hamiltonian cycle. This means that adding another edge anywhere
will create a Hamiltonian cycle. Recall that a path is just one edge from a cycle
- in a path the beginning and ending nodes are distinct but otherwise. So a
Hamiltonian path is just one edge from a Hamiltonian cycle.
ORE'S THROEREM 15
Proof of Ore's Theorem
If G did not contain a Hamiltonian path, then you could keep adding edges until you created a
Hamiltonian path (or multiple Hamiltonian paths), so G would not be the graph with the most
possible edges.
Don't think about walks. There are an infinite number of possibilities for walks - they will just
confuse you.
Suppose that G does not contain a Hamilton path ⟨v1,…,vn⟩. Let P=⟨v1,…,vm⟩ be a maximal
Hamilton path in G, and let v be any vertex of G not in the path P. Add the edge {vm,v} to G,
and call the resulting graph G′. G′ has the same vertex set as G, and it still satisfies (1) of the
ProofWiki article. Moreover, G′ has no Hamilton circuit: such a circuit would necessarily contain
the new edge, and removing that edge would leave a Hamilton path in G, which we assumed
does not exist. Finally, G′ has one more edge than G, which contradicts the choice of G as a
counterexample with the maximum number of edges among all counterexamples on n
vertices.
ORE'S THROEREM 16
Dirac's Theorem
DIRAC’S THEOREM: Let G be a graph of order p ≥ 3. If deg v ≥ p/2 for every vertex v of G, then G is
hamiltonian.
Proof. If p = 3, then the condition on G implies that G ≅ k3 and hence G is hamiltonian. We may assume,
therefore, that p ≥ 4.
Let P : v1, v2, ....... vn be a longest path in G . Then every neighbour of v1 and every neighbour of vn is on P.
DIRAC'S THEOREM 17
We now see that G has cycle C : v1, vi, vi 1, ...... vn – 1, vn, vi – 1, vi – 2, ......, v2, v1 that contains all the vertices of
P. If C contains all the vertices of G (if n = p) then C is a hamiltonian cycle, and the proof. Otherwise, there is
some vertex u of G that is not on C.
By hypothesis, deg u ≥ p/2. Since P contains at least 1 p/2 vertices, there are fewer than p/2 vertices not on
C ; so u must be adjacent to a vertex v that lies on C.
However, the edge uv plus the cycle C contain a path whose length is greater than that of P, which is
impossible. Thus C contains all vertices of G and G is hamiltonian. Hence the proof.
Let G be a graph with p-vertices. If deg v ≥ (p-1)/2 for every vertex v of G then G contains a hamiltonian
path.
Proof. If p = 1 then G ≅ k1 and G contains a (trivial) Hamiltonian path. Suppose then that p ≥ 2 and define
H=G k1.
Let v denote the vertex of H that is not in C. Since H has vertex p 1, it follows that deg v ≥ p. Moreover, for
every vertex u of G,
DIRAC'S THEOREM 18
By Dirac’s theorem, H contains a hamiltonian cycle C. By removing the vertex v from C, we obtain a
hamiltonian path in G.
Hence the proof.
Theorem: Let G be a simple graph with n vertices and let u and v be an edge. Then G is hamiltonian if and
only if G uv is hamiltonian.
Proof. Suppose G is hamiltonian. Then the super graph G uv must also be hamiltonian. Conversely, suppose
taht G uv is hamiltonian. Then if G is not hamiltonian. i.e., if G is a graph with p ≥ 3 vertices such that for all
non adjacent vertices u and v, deg u deg v ≥ p.
We obtain the inequality deg u deg v < n.
However by hypothesis, deg u deg v ≥ n.
Hence G must be hamiltonian.
DIRAC'S THEOREM 19
APPLICATION OF HAMILTONIAN 20
GRAPHS
Application of
Hamiltonian Graphs
Thank you.