Chapter 8 GRAPH THEORY-2
Chapter 8 GRAPH THEORY-2
Degree of a vertex
c d
b deg( d ) = 1
deg( e ) = 0
a g f e
Example
For shown below graph find:
1) The degree of each vertex.
2) The total number of degrees of all the vertices.
3) The total number of edges.
c d
b
a g f e
Solution
TOTAL NUMBER OF DEGREES OF All THE GRAPH’S VERTICES
= 2 + 6 + 4 + 1 + 0 + 3 + 4 = 20
THE TOTAL NUMBER OF EDGES
= 10
deg(c) = 4
c d
deg(b) = 6 b deg(d) = 1
deg(a) = 2 deg(e) = 0
a g f e
deg(g) = 4 deg(f) = 3
deg(v) 2e
vV
Example
How many edges are there in a graph with 10
vertices each of degree 5?
Solution:
Because the sum of the degrees of the vertices is
5 x 1 0 = 50,
it follows that 2e = 50.
Therefore, e = 25
deg
v v E
deg
vV vV
Example
For the shown graph, find
1) The in-degrees and the out-degrees
2) Total number of the in-degrees
3) Total number of the out-degrees
4) Number of the graph edges
Solution
1) The in-degrees: 2) The Out-degrees: 3) Total number of the
deg-(a) = 2 deg+(a) = 4 in-degrees = 12
deg-(b) = 2, deg+(b) = 1 4) Total number of the
deg-(c) = 3, deg+(c) = 2 out-degrees = 12
deg-(d) = 2, deg+(d) = 2 5) Number of the
deg-(e) = 3, deg+(e) = 3, graph edges =12
deg-(f) = 0 deg+(f) = 0
Special Types of Graphs
Complete Graphs (Kn):
The complete graph on n vertices, denoted by Kn , is the
simple graph that contains exactly one edge between each
pair of distinct vertices.
Cycles
Subgraphs
1) V2 V1
2) and E2 E1.
K5 C5
YES
Answer
The shown below graph (W5) is the union of S5
and C5
Example (ii)
Draw the graph representing the union of
G1 and G2
Answer