graph
graph
developed into
a
graph theory has
In the past few decades,
a variety of fields
in
analyzing problems
tool for
Systematic
including combinatorics. areas
theory is employed in many
times Graph
In modern physical sciences,
engineering,
such as communications,and other fields.
social sciences models in computer
linguistics, useful
are also some
ofthe most
Graphs
science.
BASIC PROPERTIES
G (V,E)
|
355
AD
ATHEMATIcs
356
Adjacent nodes
which are joined by an edge in a
Any pair of vertices graph
an adjacent notes.
is known as
Asolated nodes
In a graph a node which is not adjacent to any othernode:
called an isolated node.
Note
1. Graphs may be represented pictorially using points or
the vertices.
d C
Figure 9.1
TO GRAPH THEORY
INTRODUCTION
357
Solution.
Following are
Graph
the various types of graphs :
Directed
A graph in which every edge is directed is called a directed
graph or digraph.
In case of a directed graph an edge (u,v) e E is said to be
2 3 2 3
Figure 9.2
Undirected Graph
undirected is
every edge is
A graph G=<V,E> inwhich
known as undirected graph.
to
E E is said
In case of undirected graph, and edge (u, v)
join u and v.
talogab
2 X2 3 bobi
() (üi)
Figure 9.3
Mixed graph
the nodes 2 and 3.
A graphG=<V, E> in which some edges are directed and
some are undirected, is called a mixed graph.
Figure 9.4
Self loop
2 3
Figure 9.5
Note
Símple Graph
Ifthere more than one edge between a pair of vertices
is no
(no more thanone directed edge in the case of a directed graph)
2
3 4
Figure 9.6
360 ADVANCED DISCRETE
MATHEMATICS
Non-simple graph
graph which not a simple is called a
A is non-simple
graph.
(Non-simplegraphs)
Figure 9.7
Multigraph
Any graph which contains some parallel edges is called a
multigraph.
3
(Multigraph)
Figure 9.8
1.5
2.3
2.5
5.3
(Weighted graph)
Figure 9.9
Null graphs
A graph which contains only isolated nodes is called a null
graph.
In other words, the set of
edges in a null graph is empty.
V2
(Null graph)
Linear graph
lies
A graph
along
is
a line -
a linear graph if its
is
each edge joining
a linear graph.
vertices
Regular graph
Ifeach vertex of a graph has same degree, the graph
is called
a regular graph each vertex has degree
regular graph. If in
k, it
isknown as k-regular
graph. e.g.
Figure 9.10
AD TICS
362
graphs.
are regular 2 and the vertices
each vertex is of degree of
In first graph
have degree 3.
second graph
graph respectively.
These are 2-regular and 3-regular
Finite graph
A graph is said to be finite graph if its sets of vertices and
Degree of vertex
defined as the number of edges
The degree of a vertex V is
the vertex v as an
incident on it or the number of edges having
end point.
Sometime valency word is also used for degree.
It is written as deg v and it cannot be negative.
Isolated vertex
Pendent vertex
Vertex of degree one is called pendent vertex.
Degree of a self-loop is wo as it is twice incident on a vertex.
Odd vertex
A vertex is called an odd vertex if its degree is odd.lae
Even vertex
d C
Figure 9.11
degrees.
Therefore +
sum of degrees d, d, +...+d,=2 X number OT
edges which is an even number.
Further, let V,be the set of vertices with even degrees and
V, be the set of vertices with odd degrees.
Then d +d,t.tdh= d, + X d,
d,e V, de V,
X d=(d +d, t.+d,)- S d,
d,e V
(d,+d,
t..+ d, ) )
and are even.
d,e V
the
guests. Show that, atthe end the party, thenumber of guests
of
who have
shaken hands an odd nunber of times is even.
Solution. The hand shaking party can be modeled by a
at the
multigraph.
The are the guests. Each time two guests shakehands
We joinvertices
themby new The a multigraph to
which
Wecan edge. result is
sequence of
both G and G is (
(3,3, 3, 3,2, 2, 2, 2)
Degree
are not isomorphic.
but these graphs to one of
so 2
that a must correspond
Since a is of degree
only degree two vertices in
2,3, 6 and 7
because these are the
to
a cannot correspond
But
m edges oftheformn
Trail
Note
e
b C
f
() (i)
(Disconnected graph)
(Connected graplh)
Figure 9.20
The graph
drawn in figure (i) is There is no
disconnected.
walk from vertex a to vertex d.
graph G
?
representation
Solution.Adjacency matrix
G consists of n vertices then the
If an undirected graph
by
if;,v is an edge i.e v; is adjacent to v;
1,
aj=0.
Incidence matrix representation
If an undirected graph consists of n vertices and m edges, then
Example
figurebelow
9.
:
.Findthe adjacency matrix
B
of graph G sshown in the
A C
Figure 9.25
A 0
M= B 10 1. 1
C
ban D Lvsl-ll 0
V3
V2
es
VA
384
ADVANCED DISCRETE
MATHEMATICS
Solution. The undirected graph consists of four vertices
edges. andfve
10 0 1 ()
M
01 1I 0 0
V3 11 0 0
V4 00 1
V3
Figure 9.27
edges.
shown as follows:
e, e e ey eg
Vi f -1 0 00 -1
1 1 0 -1 0
M= 00
0 -1 1
V3
VA 00 11 -1
5-regulargraph.
is
with four vertices
Solution. Multigraph