V, V, ) Called Vertices: Points or Nodes) and Other Set E (E
V, V, ) Called Vertices: Points or Nodes) and Other Set E (E
UNIT I INTRODUCTION
1. Define Graph.
A graph G = (V, E) consists of a set of objects V={v1, v2, v3, } called vertices (also called
points or nodes) and other set E = {e1, e2, e3, .......} whose elements are called edges (also called lines
or arcs).
The set V(G) is called the vertex set of G and E(G) is the edge set of G.
For example :
A graph G is defined by the sets V(G) = {u, v, w, x, y, z} and E(G) = {uv, uw, wx, xy, xz}.
v
Graph G: u
x y
w
z
A graph with p-vertices and q-edges is called a (p, q) graph. The (1, 0) graph is called trivial
graph.
w x y w x y
Simple Graph Pseudo Graph
3. Write few problems solved by the applications of graph theory.
Konigsberg bridge problem
Utilities problem
Electrical network problems
Seating problems
Finite Graphs
Infinite Graphs
6. Define Isolated and pendent vertex.
A vertex having no incident edge is called an isolated vertex. In other words, isolated vertices
are vertices with zero degree. A vertex of degree one is called a pendant vertex or an end vertex.
Graph G: v1 v2 e1
e3
e5 e4 e2
e6 e7
v7 v3 6 v4 v5 v6
v7 v3 v4 v5 v6
8. Define Multigraph
In a multigraph, no loops are allowed but more than one edge can join two vertices, these edges
are called multiple edges or parallel edges and a graph is called multigraph.
Graph G: v1 v2
e3
e5 e4 e2
e6 e7
v3 6 v4 v5 v6
The edges e5 and e4 are multiple (parallel) edges.
CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS 3
v2 v3 v4 v3
v4 v3
Graph G: v1 e1 v2 e2 v3 v1 e1 v2 e2 v3
Subgraph G' of G:
e3 e4 e5 e4
e6 e4 e4
v4 6 v5 v6 v5 v6
g a g a c g a
c c
b b b
v2 v2 v2
v3 v3 v3
e f e f d e f
d d
h h h
v4 v5 v4 v5 v4 v5
e5 e4 e3 e2
v3 e6 v6 v4 v5
Disconnected Graph H6 with 3 components
CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS 5
e1
e2 e3 e5
e6
v3 e67 v4
v4 e1 v1 e2 v3 e3 v1 e4 v2 e5 v4 e6 v3 e7 v4 is an Euler circuit. So the above graph is Euler graph.
6
Graph G: d v1 e v2
a c f h j k
v6 b v3 g v4 i v5
CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS 6
Paths between vertices v6 and v2 are (a, e), (a, c, f), (b, c, e), (b, f), (b, g, h), and (b, g, i, k).
The shortest paths between vertices v6 and v2 are (a, e) and (b, f), each of length two.
Hence d(v6 , v2) =2
The eccentricity E(v) of a vertex v in a graph G is the distance from v to the vertex farthest
from v in G; that is,
= max (, )
A vertex with minimum eccentricity in graph G is called a center of G
Graph G: a
d c
b
Distance d(a, b) = 1, d(a, c) =2, d(c, b)=1, and so on.
Eccentricity E(a) =2, E(b) =1, E(c) =2, and E(d) =2.
Center of G = A vertex with minimum eccentricity in graph G = b.
v1 e4 v2 v1 e4 v2
Graph G: Spanning Tree T:
e1 e1
e2 e3 e5 e3
e6
v3 e67 v4 v3 v4
6
2. Define Branch and chord.
An edge in a spanning tree T is called a branch of T. An edge of G is not in a given spanning
tree T is called a chord (tie or link).
v1 e4 v2 v1 e4 v2
Graph G: Spanning Tree T:
e1 e1
e2 e3 e5 e3
e6
v3 e67 v4 v3 v4
6
Edge e1 is a branch of T Edge e5 is a chord of T
v1
v1
v1 v2
v1
v1 is an articulation point.
The max. flow between two vertices = Min. of the capacities of all cut-sets.
To eliminate the distinction between finite and infinite regions, a planar graph is often
embedded in the surface of sphere. This is done by stereographic projection.
CS6702 GRAPH THEORY AND APPLICATIONS 2 MARKS QUESTIONS AND ANSWERS 13
Recurrence relations
A recurrence relation is an equation that recursively defines a sequence or multidimensional
array of values, once one or more initial terms are given: each further term of the sequence or array is
defined as a function of the preceding terms.
The term difference equation sometimes (and for the purposes of this article) refers to a
specific type of recurrence relation. However, "difference equation" is frequently used to refer
to any recurrence relation.
Fibonacci numbers
The recurrence satisfied by the Fibonacci numbers is the archetype of a homogeneous linear
recurrence relation with constant coefficients (see below). The Fibonacci sequence is defined using the
recurrence
Fn = Fn-1 + Fn-2
with seed values F0 = 0 and F1 = 1
We obtain the sequence of Fibonacci numbers, which begins
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...