Professional Documents
Culture Documents
Unit IV: Graphs (Refer T-1 and R-6)
Unit IV: Graphs (Refer T-1 and R-6)
Introduction :
• Many real life problems can be abstracted as problems
concerning sets of discrete objects and binary relations on
them. For example, consider a number of cities connected by
highways, and we might want to determine whether there is a
highway route between two cities.
• In many problems dealing with discrete objects and binary
relations , a graphical representation of the objects and the
binary relations on them is a very convenient form of
Unit IV : Graphs
Basic Terminology :
Directed Graph : A directed graph or digraph G = (V, E), is defined
abstractly as an ordered pair (V, E), where V is a set and E is a binary
relation on V. For example,
V = {a, b, c, d) and E = {(a,b),(b,a),(b,d),(d,a),(d,d),(c,c)}.
Elements in V are called as vertices and elements in E are called
as ordered pairs or (directed) edges.
The edge (a,b) is incident with the vertices a and b i.e. it is
incident from a and incident into b. Vertex a is called as initial
vertex and vertex b is called as terminal vertex
An edge that is incident from and into the same vertex is called as
a loop, e.g. edge (c,c)
Two vertices are said to be adjacent if they are joined by an edge
e.g. for an edge (a, b), vertex a is said to be adjacent to vertex b
and vertex b is said to be adjacent from vertex a. Vertex c is
isolated vertex since there is no edge incident to c.
Unit IV : Graphs
Basic Terminology contd…:
Undirected Graph : An undirected graph or digraph G = (V, E), is
defined abstractly as an ordered pair (V, E), where V is a set and E is a
set of multisets of two elements from V. For example,
V = {a, b, c, d) and E = {(a,b),(a,d),(b,c),(b,d), (c,c)}.
Edge Connectivity :
It is number of edges in smallest cutset of a simple
connected graph.
Vertex Connectivity:
V.C. of simple connected graph is minimum number
of vertices whose removal makes graph
disconnected.
Unit IV : Graphs
Eulerian Paths and Circuits:
Eulerian Paths :
L. Euler, the father of the theory of graphs, proved in 1736 that it
was not possible to cross each of the seven bridges on the river Pregel
in Konigsberg, Germany, once and only once in a walking tour.
Graphical representation
Euler discovered a very simple criterion for determining whether
there is a path in a graph that traverses each of the edges in the graph
once and only once.
Eulerian Path : Eulerian path in a graph is defined as a path that
traverses each edge in the graph once and only once.
Eulerian Circuit : Eulerian circuit in a graph is defined as a circuit that
traverses each edge in the graph once and only once.
Degree of a vertex : The degree of a vertex is the number of edges
incident with it (note that loop contributes to a count of two edges)
Unit IV : Graphs
Eulerian Paths and Circuits:
Sufficient and necessary conditions for Eulerian paths
and circuits:
In any graph there is an even number of vertices of odd degree since
each edge contributes to a count of one to the degree of each of the two
vertices with which it is incident, the sum of the degrees of the vertices
is equal to twice the number of edges in a graph.