Professional Documents
Culture Documents
Mat3707 2018 TL 201 2 B
Mat3707 2018 TL 201 2 B
Semester 2
SOLUTIONS TO ASSIGNMENT 01
2
1. The list of degrees of the vertices of a graph, arranged in non-decreasing order, is called the degree
sequence of the graph.
(a) Draw two non-isomorphic graphs with degree sequence 1,1,1,1,2,2. (4)
(b) Draw two non-isomorphic graphs with degree sequence 1,1,3,3,3,3. (4)
(a)
and
The two graphs are non-isomorphic since the two vertices of degree 2 are adjacent in the first
graph, while in the second graph, they are nonadjacent.
(b)
and
The two graphs are non-isomorphic since the first graph is disconnected while the second
graph is connected.
3 MAT3707/201/2
2. For each of the following pairs of graphs and directed graphs determine whether they are isomorphic
or not. If they are, give a vertex correspondence. If they are not, give a reason why.
(a)
a 1
b c
6 2
5 3
d e f
4
(5)
Solution
The two graphs are isomorphic. One vertex correspondence is given by
a b c d e f
1 3 5 2 4 6
(b)
h a 8 1
g b 7 2
f c 6 3
e d 5 4
(5)
Solution
The two graphs are not isomorphic. Here is a proof by contradiction.
Suppose the two graphs are isomorphic. Then, because of the vertex symmetry of the graph (i.e.
every vertex in any one of the two graphs acts like all the other vertices in that graph) we may
as well assume that vertex a in the first graph corresponds to vertex 1 in the second graph. But
then the neighbours of a (i.e. the vertices adjacent to a) in the first graph will correspond to the
neighbours of 1 in the second graph.
4
b 7 2
and
f 3
e d 5
Since they are not isomorphic (the second graph has a 5-circuit while the first graph doesn’t have
a 5-circuit), the two original graphs cannot be isomorphic.
(c)
a b c 1 2
5 6
d e f
4 3
(5)
Solution
They are not isomorphic since the subdigraphs induced by the vertices with in-degree 2 and out-degree
one are not isomorphic:
c
1
and
5
d f
3
3. If a graph G has n vertices, all of which but one have odd degree, how many vertices of odd degree
are there in G, the complement of G? (4)
Solution
If all but one of the n vertices of G is odd, it means G has n − 1 vertices of odd degree. By the
Corollary of Theorem 1 in Section 1.3 of Tucker, it follows that n − 1 has to be even and therefore n
is odd.
If a vertex has degree d in G, then that vertex has degree n − 1 − d in G. Since n − 1 is even, n − 1 − d
is odd exactly when d is odd. This happens for n − 1 of these vertices. So G has exactly n − 1 vertices
of odd degree.
5 MAT3707/201/2
4. If every vertex in a graph G has degree ≥ d where d ≥ 2, then show that G must contain a circuit of
length at least d + 1.
Hint. Consider a longest path, say P , in G and look at the neighbours of an endvertex of P . (6)
Solution
We use a constructive proof, i.e. we explain how to construct such a circuit.
Let P = v1 v2 . . . vℓ be a longest path in G. First we show that all the neighbours of v1 lies on P .
Suppose there is a neighbour of v1 that does not lie on P , say w. Then wP is a path in G that is
longer than P contradicting our assumption that P is a longest path in G. Hence all the neighbours of
v1 lie on P . Now let w1 , w2 , . . . , wk be the neighbours of v1 where k ≥ d. We can assume that w1 = v2
and that wk = vj with j ≤ ℓ is the last the neighbour of v1 on P . But then v1 v2 . . . vj v1 is a circuit in
G that contains v1 and all its k ≥ d neighbours. Hence, G has a circuit of length at least d + 1.
5. (a) If a graph has 38 edges, what is the smallest number of vertices it can have? (3)
Solution
n
Let n be the number of vertices. The largest number of edges is when the graph is complete: 2 .
Thus
n 1
38 ≤ = n(n − 1)
2 2
i.e. 76 ≤ n(n − 1).
Make a table:
n 8 9 10 11
n(n − 1) 56 72 90 110
Thus we see that n ≥ 10. Before we can now say that n = 10, we have to make sure there is a
graph with 10 vertices and 38 edges. But this is easy: just remove any 7 edges from K10 (which
has 10
2 = 45 edges).
(b) If a connected planar graph with n vertices, all of degree 3, has 8 regions, determine n. (3)
Solution
If we let e denote the number of edges, then Euler’s formula gives
8 = e − n + 2.
3n = 2e
3n
i.e. e = .
2
Substitute back into the first equation:
3n
8 = −n+2
2
n+4
=
2
i.e. n = 12.
6
(c) If G is a 10-vertex planar graph with e edges, determine all possible values of e. (3)
Solution
By the corollary on p. 36 (edition 5) or p. 38 (edition 6) of Tucker, if G is a connected graph
with e > 1, then e ≤ 3v − 6. Note that this is also true for disconnected planar graphs, since you
can add edges between the components to make the graph connected while it stays planar, and
then you can apply the corollary to obtain
So we may apply the corollary, even though it is not given that G is connected:
e ≤ 3v − 6 = 3 × 10 − 6 = 24.
Next we show that there exists a planar graph with 10 vertices and 24 edges:
However, note that d < n. Thus there are four possibilities remaining: n = 9 and d = 6, n = 18
and d = 3, n = 27 and d = 2, and finally n = 54 and d = 1. It is not difficult to construct a
graph for each possibility. If n = 27 and d = 2, one example is a circuit on 27 vertices, i.e. a C27 .
If n = 54 and d = 1, the graph is the union of 27 K2 ’s. An example of a graph with n = 18 and
d = 3 is given by the graph below.
n = 18 and d = 3
Finally, we note that a graph with n = 9 and d = 6 is the complement of a graph with n = 9 and
d = 2. The reason for this is as follows. If each vertex of G has degree d, then in G, the complement
of G, each vertex has degree n − 1 − d. So in this case a graph with n = 9 and d = 6 is just the
complement of a C9 , that is, a circuit on 9 vertices.
6. Find a Hamilton path in the graph below and prove that no Hamilton circuit exists.
a
c d
j
e f
g h i
(6)
Solution
A Hamilton path is abceghjdf i.
In order to show that no Hamilton circuit exists, let’s first try to use Grinberg’s Theorem which states
that if a planar graph G has a Hamilton circuit, then the numbers ri and ri′ satisfy the equation
X
(i − 2)(ri − ri′ ) = 0. (1)
i
This does not mean that if G is a planar graph for which the numbers ri and ri′ satisfy the above
equation, then G has a Hamilton circuit.
8
This fact is illustrated by this example. If we use Grinberg’s Theorem and find values for ri and ri′
that satisfy equation (1), then G does not necessarily have a Hamilton circuit. In fact, we can use the
three rules of Tucker to show that no Hamilton circuit exists.
First, from Grinberg’s Theorem we note that there are 13 regions; 12 bounded by 3 edges and one
region, the outside, bounded by 6 edges. We therefore have
7. Use the circle-chord method to determine whether the following graph is planar. If it is, give a planar
drawing. It if is not, find a K3,3 - or K5 -configuration. (8)
1 2
8 3
7 4
6 5
Solution
By inside-outside symmetry we choose the edge 15 to be drawn inside. Then the edge 48 must be
drawn outside. Then the edge 26 cannot be drawn.
9 MAT3707/201/2
1 2
8 3
7 4
6 5
1 4 6
7
3
2 5 8
8. Determine the chromatic number of each of the following graphs. Give a minimal colouring and a
proof that a smaller number of colours cannot be used.
(a) (5)
a b c d
e f g h
Solution
Since the graph contains triangles, χ(G) ≥ 3. The following is a 3-colouring of the graph
blue green red
a, c, g d, e b, f, h
This proves that χ(G) ≤ 3 and hence χ(G) = 3.
10
(b) (5)
b c d e
g h i j
Solution
Since there are triangles χ(G) ≥ 3. We now analyze a 3-colouring of G.
We start with the neighbours of the vertex k, i.e. the vertices g, h, i and j. Since we are analyzing
a 3-colouring of G, we have to use at most 2 colours to colour the neighbours of k, since we need
one more colour for the vertex k. Say we colour g blue. Then h and j have to be coloured in
another colour, say green. Then i has to be coloured blue. Now f is adjacent to a green and a
blue vertex and we need another colour, say red, to colour f .
Vertex c is now forced to be blue and d is forced to be green. Since e is adjacent to g and j, it has
to be coloured red. Now a is adjacent to a blue, green and red vertex and cannot be coloured.
Our analysis of a 3-colouring has shown that χ(G) ≥ 4. A 4-colouring of G is easy to find, for
example
blue green red yellow
c, g, i b, d, h, j e, f, k a
This proves that χ(G) ≤ 4 and hence χ(G) = 4.
10. Show that an unrooted tree with at least three vertices of degree 1 must always have a vertex of degree
at least 3. (5)
Solution
One possible proof is the following.
Let a, b and c be three vertices of degree 1. Since a tree is connected, there is a path P1 between a
and c, and a path P2 between b and c. Obviously, P1 and P2 have the vertex c in common. If they
have no other vertices in common, then c is forced to have degree larger than 1, which contradicts our
assumption that c is of degree 1:
11 MAT3707/201/2
a
P1
c
b
P2
Therefore, P1 and P2 must have at least one more vertex in common. Let d be the first vertex of P2
as we go from a to c which is also on P1 :
a d
P1
c
b P2
11. Let T be a tree (not rooted) on 14 vertices with each vertex of degree either 1 or 4.
4t + 1 × (14 − t) = 3t + 14.
The number of edges of T is 14 − 1 = 13, and it follows by the edge counting theorem that the
sum of the degrees also equal 2 × 13 = 26, i.e.
3t + 14 = 26,
and
12
Consider the subgraphs of the above two graphs formed by the vertices of degree 4 are given by
and
respectively. Since these subgraphs are clearly not isomorphic, the original ones are also not
isomorphic.
(d) Use (a) and (b) above to prove that your list contains all such trees. (3)
Solution
From (b) we know that if we remove all the vertices of degree 1 and their incident edges, we are
still left with a tree. From (a) we know that this tree has 4 vertices. It is easy to list all trees
with 4 vertices:
and
In each case there is only one way of putting back the vertices of degree 1:
and
So there are only these two, and the list in (c) is complete.
Solution
Again the answer is 54, for the same reason.
13. For each of the following, determine if it exists. If it does, give an example. If it doesn’t give a reason
why.
d e f
g i
f
i
g
d h
b h
a c g i
d f
14
15. Find a minimal spanning tree of the weighted graph below using
a 3 e 4 i 4 m
2 4 2 3
b 3 f 1 j 5 n
5 6 7 6
c 5 g 2 k 2 o
7 5 3 4
d 2 h 4 l 1 p
3 4 10
b 9 f 1 j n
14
c 15 g 5 k 6 o
11
d 7 h 13 l 2 p
a 10 e i 14 m
9 13 15
b 11 f 12 j n
8
c 7 g 4 k 3 o
2
d 6 h 5 l 1 p