Module3 Elementary Graph Theory Dr.E.prasad
Module3 Elementary Graph Theory Dr.E.prasad
Dr.E.Prasad
Asst Professor, Dept of Mathematics
VIT Bhopal
Module Title
Module-3. Elementary Graph Theory
Syllabus
Definition
Graph
A graph G(V,E) is two sets of object
Vertices (or nodes) , set V
Edges, set E
A graph is represented with dots or circles (vertices) joined by lines (edges)
Vertices
Edges
Definition
Definition
When the edges in a graph have no direction, the graph is called
undirected graph
Cont..
Definition
When the edges in a graph have a direction, the graph is called directed
(or digraph)
Finite graph : an graph whose vertex set and edge set are finite
Definition
Definition
Definition
Multiple
edges loop
Definition
ei
vj vk
Definition
Cont…
Example:Find the In -Degree, Out-degree, and degree of each vertex of a graph given
below.
2 A: deg-(1) = ?
deg-(2) = ?
1 3
deg-(3) = ?
deg+(1) = ?
deg+(2) = ?
deg+(3) = ?
2 A: deg-(1) = 0
deg-(2) = 3
1 3
deg-(3) = 4
deg+(1) = 2
deg+(2) = 3
deg+(3) = 2
Definition
Definition
1. Complete Graph(𝐊 𝐧 )
2. Regular Graph(K-Regular Graph)
3. Planer Graph
4. Bipartite Graph
5. Complete Bipartite Graph-(𝐊 𝐦𝐧 )
6. Cycle Graph(𝐂𝐧 )
7. Wheel Graph(𝐖𝐧 )
Definition
Ans.None
Regular graphs
Definition
with 15 edges?
by
Cont..
Theorem : If G has n vertices and is regular of degree r then G has (r.n)/2 edges
Example : In the above Regular graph n= 4 vertices and regular of order r=3
Therefore the number of edges are (n.r)/2=(4.3)/2=6
Planer Graphs
Definition
Examples
1. How many edges must a planar graph have if it has 7 regions and 5 vertices.
Draw one such graph
2. Suppose G is a graph with 1000 vertices and 3000 edges. Is G planar ?
3. A connected plane graph has 10 vertices each of degree 3. Into how many regions,
does a representation of this planar graph split the plane ?.
4. Show that Kn is a planar graph for n ≤ 4 and non-planar for n > 5.
Sol: We know that for a connected planar graph 3v-e≥6.Hence for K4,
we have 3x4- 6=6 which satisfies the property (3).
Thus K4 is a planar graph. Hence Proved.
Bipartite Graphs
Definition
Example
A graph with at least two vertices is bipartite if and only if it contains no odd cycles.
Definition
Example
Determine whether or not each of the graphs is bipartite. In each case, give the
bipartition sets or explain why the graph is not bipartite.
Definition
Definition
Example
Degree Sequence
Definition
Degree sequence of a graph is the list of degree of all the vertices of the
graph. Usually we list the degrees in non increasing order, that is from
largest degree to smallest degree
(c)
Answers
(c)
(e)
(d) (e)
(4, 4, 2, 2, 2).
{ 3,3,3,3,2,2,2,2} { 3,3,3,3,2,2,2,2}
Example
Example
Exercise
Reference:
1. https://www.mathstat.dal.ca/~ghandeh/MATH3330/Math3330-1-sol.pdf
2. https://supremus.sk/math/is_a_degree_sequence_graphic/index_en.php
1. In a graph G, the sum of the degrees of the vertices is equal to twice the number of edges
2. For any graph G, the number of odd degree vertices is always even.
3. For n ≥ 1, prove that Kn has n(n − 1)/2 edges, if the edges are 15 then find number of
vertices, What is the smallest integer n such that the complete Kn has at least 500 edges?
4. Show that if G is bipartite then |E| ≤ [n2/4]
5. A graph is bipartite if and only if it has no cycles of odd length
6. A connected graph G is bipartite if and only if G has no odd cycles.
7. If a connected planar graph G has e edges, v vertices, and r regions, then v-e + r=2.
8. If G has n vertices and is regular of degree r then G has (r.n)/2 edges
9. If G is a k-regular bipartite graph with k > 0 and the bipartition of G is X and Y , then the
number of elements in X is equal to the number of elements in Y
10. Let G be a simple regular graph with n vertices and 24 edges. Find all possible values of n
and give examples of G in each case
11. A complete graph Kn is a planar if and only if n<5.
12. Show that a complete bipartite graph Km, n has mn vertices.
13. The complete graph Kn can be expressed as the union of k bipartite graphs if and only n≤2k
14. A complete bipartite graph Km,n is planar if and only if m<3 or n>3
15. Does the given degree sequence (6,6,5,5,4,4,3,3) represents the graph, justify your answer
*Isomorphism
Definition
Definition
Definition
Definition
Examples
d)
e)
Exercise
1)
2)
3) Verify the following graphs are isomorphic? Justify with your answer
4) Verify the following graphs are isomorphic? Justify with your answer
5) Verify the following graphs are isomorphic? Justify with your answer
6) Verify the following graphs are isomorphic? Justify with your answer
https://documents.uow.edu.au/~bmaloney/wuct121/GraphsWeek10Lecture2.pdf
7) Verify the following graphs are isomorphic? Justify with your answer
8) Verify the following graphs are isomorphic? Justify with your answer
Reference:
https://documents.uow.edu.au/~bmaloney/wuct121/GraphsWeek10Lecture2.pdf
Definition
Definition
Definition
Definition
Definition
Definition
*Definition
Definition
Dr.E.Prasad,VIT BPL
Operations on Graphs Dr.E.Prasad ,Asst Professor,VIT Bhopal
Module-3. Elementary Graph Theory
Components of a Graph
Definitions
Explanation: There are 2 different connected components. They are {0, 1, 2} and {3, 4}.
Explanation: There are 3 different connected components. They are {1, 2} , {3, 4,5} and {6,7}
Example: Consider the following graph, Find the number of connected components
Example: Consider the following graph, Find the number of connected components
Dr.E.Prasad,VIT BPL
Components of a Graphs Dr.E.Prasad ,Asst Professor,VIT Bhopal
Module-3. Elementary Graph Theory
• Euler Path
• Euler Circuit
• Hamilton Path
• Hamilton Circuits
Basic Definitions
Walk/Path
Open Walk,
Closed Walks
Trail
Simple Path
Simple Circuit
Example
Open walk: A walk is said to be open if the first and the last
vertices are different i.e. the terminal vertices are different.
.
Basics of Euler and Hamilton Graphs Dr.E.Prasad ,Asst Professor,VIT Bhopal
Module-3. Elementary Graph Theory
Example: From the following graph describe the following types of walks
Answer:
Answer:
1. v1 e1 v2 e2 v3 e2 v2
2. v4 e7 v1 e1 v2 e2 v3 e3 v4 e4 v5
3. v1 e1 v2 e2 v3 e3 v4 e4 v5
4. v1 e1 v2 e2 v3 e3 v4 e7 v1
5. v6 e5 v5 e4 v4 e3 v3 e2 v2 e1 v1 e7 v4 e6 v6
1. v1 e1 v2 e2 v3 e2 v2
2. v4 e7 v1 e1 v2 e2 v3 e3 v4 e4 v5
3. v1 e1 v2 e2 v3 e3 v4 e4 v5
4. v1 e1 v2 e2 v3 e3 v4 e7 v1
5. v6 e5 v5 e4 v4 e3 v3 e2 v2 e1 v1 e7 v4 e6 v6
Answers
1. Open walk
2. Trail (Not a path because vertex v4 is repeated)
3. Path
4. Cycle
5. Circuit (Not a cycle because vertex v4 is repeated
Definition
Sol1
Sol2
Sol1
Sol2
*Question: Is it possible for anyone to cross each of the seven bridges only a single time and
come back to the beginning point without swimming across the river if we begin this process
from any of the four land areas that are A, B, C, and D?.
*Ans:
No, because
It fails to prove that when there are exactly only two nodes of odd degree
When all the nodes are of even degree
Hamiltonian Circuit – A simple circuit in a graph that passes through every vertex exactly once
is called a Hamiltonian circuit.
**Note: There is a certain criteria which rule out the existence of a Hamiltonian circuit in a
graph, such as- if there is a vertex of degree one in a graph then it is impossible for it to have
a Hamiltonian circuit.
Reference: https://www.javatpoint.com/hamiltonian-graph-in-discrete-mathematics
By the theorem we have n = 6 and deg(v) = 3 for each vertex, so this graph is Hamiltonian by
Dirac's theorem.
Ore’s Theorem- “If is a simple graph with n vertices with such that deg(u)+ deg(v)≥n for every
pair of non-adjacent vertices and in , then has a Hamiltonian circuit.”
n = 5 but deg(u) = 2, so Dirac's theorem does not apply. However, deg(v) + deg(w) ≥ 5 for all
pairs of vertices v and w (infact, for all pairs of vertices v and w), so this graph is Hamiltonian by
Ore's theorem.
Example: Verify the following graph is then G is a Hamiltonian graph. (Dirac theorem)
Solution- Yes, the above graph has a Hamiltonian circuit. The solution is –
Solution- No the above graph does not have a Hamiltonian circuit as there are two
vertices with degree one in the graph.
Example 3- Does the following graphs have a Hamiltonian Path or Hamilton Circuit?
Example 3-Answers
Reminder;
An Euler path is a path that passes through every edge exactly once. If it ends at the initial
vertex then it is an Euler cycle(circuit).
A Hamiltonian path is a path that passes through every vertex exactly once (NOT every edge).
If it ends at the initial vertex then it is a Hamiltonian cycle(circuit).
** Example: Give an example of the following for each and every case
a) Euler path but not Euler Circuit
b) Hamilton path but not Hamilton Circuit
c) Draw the graph which is both Eulerian and Hamiltonian
d) Draw the graph which is Eulerian but not Hamiltonian
e) Draw the graph which is not Eulerian but Hamiltonian
f) Draw the graph which is neither Eulerian not Hamiltonian
Note:
Eulerian is same as Euler Circuit
Hamiltonian same as Hamilton Circuit
Exercise
Reference: https://lidicky.name/oldteaching/20.569X/l11%20-%20Eulerian.pdf