Discrete Mathematics For Computer Application
Discrete Mathematics For Computer Application
P. Ittmann
UKZN, Pietermaritzburg
Semester 1, 2012
V G( ) = {v1 , v2 , v3 , . . . , vn }
There are two vertices of degree 1, two of degree 3 and one of degree 2
3, 3, 2, 1, 1
Example
Can
3, 3, 3, 3, 3, 3, 3
be the degree sequence of some graph G ?
No it cannot
Since the graph would have 7 vertices with odd degree and
deg v 6= 2 · m
X
v ∈V
Denition
A sequence d1 , d2 , . . . , dn of non-negative integer is graphical if it is a
degree sequence of some graph
Example
Consider the following sequences
3, 3, 3, 3, 1
2, 2, 2, 0
4, 4, 4
5, 5, 4, 2, 0
Are these graphical?
n ≥2
Let D
0 be the sequence obtained from D by
1 Discarding d1 , and,
2 Subtracting 1 from each of the next d1 entries of D
That is, D
0 is the sequence
d2 − 1, d3 − 1, . . . , dd1 +1 − 1, dd1 +2 , . . . , dn
Example
Consider the sequence 5, 3, 3, 3, 2, 2, 1, 1
Is it graphical?
Hence, 5, 3, 3, 3, 2, 2, 1, 1 is graphical
Hence, 6, 5, 5, 5, 4, 4, 2, 1 is graphical
Ittmann (UKZN PMB) Math236 2012 9 / 19
Havel-Hakimi (cont.)
Example
Is the the sequence 8, 7, 6, 6, 5, 3, 2, 2, 2, 1 graphical?
Example
This last sequence is clearly not graphical
Example
Let D be the sequence 4, 4, 4, 3, 3, 2
Example
Applying the Havel-Hakimi theorem
D : 4, 4, 4, 3, 3, 2 is graphical i
D1 : 3, 3, 2, 2, 2 is graphical i
D2 : 2, 1, 1, 2 is graphical i
D2 : 2, 2, 1, 1 is graphical i
D3 : 1, 0, 1 is graphical i
D3 : 1, 1, 0 is graphical i
D4 : 0, 0 is graphical
Example
Clearly 0, 0 is graphical and hence 4, 4, 4, 3, 3, 2 is graphical
D3 D2 D1 D
Proof.
Suppose that the sequence D
0 is graphical
Proof.
The degree of v1 is d1
is graphical
There must exist two vertices vj and vk with dj > dk such that v1 is
adjacent to vk , but not to vj