Graph Theory
Graph Theory
Index
• Isomorphism
• Chromatic Number
• Planar Graph
• Euler Graph
• Hamilton Graph
Graph Isomorphism
• The same graph exists in multiple
forms.
• Therefore, they are Isomorphic
graphs.
Graph Isomorphism Conditions-
• For any two graphs to be isomorphic, following 4 conditions must be
satisfied-
• Number of vertices in both the graphs must be same.
• Number of edges in both the graphs must be same.
• Degree sequence of both the graphs must be same.
• If a cycle of length k is formed by the vertices { v1 , v2 , ….. , vk } in one
graph, then a cycle of same length k must be formed by the vertices { f(v1) ,
f(v2) , ….. , f(vk) } in the other graph as well.
Graph Isomorphism
Degree Sequence
Degree sequence of a graph is defined as a sequence of the degree of all
the vertices in ascending order.
Important Points
• The above 4 conditions are just the necessary conditions for any two
graphs to be isomorphic.
• They are not at all sufficient to prove that the two graphs are
isomorphic.
• If all the 4 conditions satisfy, even then it can’t be said that the graphs
are surely isomorphic.
• However, if any condition violates, then it can be said that the graphs
are surely not isomorphic.
Sufficient Conditions-
• The following conditions are the sufficient conditions to prove any
two graphs isomorphic.
• If any one of these conditions satisfy, then it can be said that the
graphs are surely isomorphic.
Example - 1
Are the following two graphs isomorphic?
Example - 2
Example - 2
• two graphs are surely isomorphic if and only if their complement
graphs are isomorphic.
Example - 3
Graph Coloring
Chromatic Number
Chromatic Number
Planar Graph
• Planar graph is a graph that can be drawn in a plane such that none of
its edges cross each
Regions of Plane
• The planar representation of the graph splits the plane into connected
areas called as Regions of the plane.
• If there exists a walk in the connected graph that visits every edge of
the graph exactly once with or without repeating the vertices, then
such a walk is called as an Euler walk.
• NOTE
• A graph will contain an Euler path if and only if it contains at most
two vertices of odd degree.
Find Euler Path
Euler Cycle
• An Euler trail that starts and ends at the same vertex is called as an
Euler circuit.
• A graph will contain an Euler circuit if and only if all its vertices are
of even degree.
Find Euler Circuit
Euler Path / Circuit
Hamilton Graph
• If there exists a closed walk in the connected graph that visits every
vertex of the graph exactly once (except starting vertex) without
repeating the edges, then such a graph is called as a Hamiltonian
graph.
• Any connected graph that contains a Hamiltonian circuit is called as a
Hamiltonian Graph.
Hamilton Path
• If there exists a walk in the connected graph that visits every vertex of
the graph exactly once without repeating the edges, then such a walk is
called as a Hamiltonian path.
• If there exists a Path in the connected graph that contains all the
vertices of the graph, then such a path is called as a Hamilton path.
• In Hamiltonian path, all the edges may or may not be covered but
edges must not repeat.
Example
Hamilton Circuit
• A Hamiltonian path which starts and ends at the same vertex is called
as a Hamiltonian circuit.
Example
Important Points
• Any Hamiltonian circuit can be converted to a Hamiltonian path by
removing one of its edges.
• Every graph that contains a Hamiltonian circuit also contains a
Hamiltonian path but vice versa is not true.
• There may exist more than one Hamiltonian paths and Hamiltonian
circuits in a graph.