Graph Theory FOR MATHS OLYIMPIAD
Graph Theory FOR MATHS OLYIMPIAD
Published
VoL 1 A First Step to Mathematical Olympiad Problems
by Derek Holton (University of Otago. New Zealand)
Zheng Zhongyi
High School Attached to Fudan University, China
Vol. 31 Mather:natical
Olympiad
Series
Graph Theory
translated by
Liu Ruifang
Zhai Mingqing
Lin Yuanqing
East China Normal University, China
and
GRAPH THEORY
Mathematical Olympiad Series - Vol. 3
Copyright © 2010 by East China Normal University Press and
World Scientific Publishing Co. Pte. Ltd.
All rights reserved. This book, or parts thereof, may not be reproduced in any form or by any means,
electronic or mechanical, including photocopying, recording or any information storage and retrieval
system now known or to be invented, without written permission from the Publisher.
For photocopying of material in this volume, please pay a copying fee through the Copyright
Clearance Center, Inc., 222 Rosewood Drive, Danvers, MA 01923, USA. In this case permission to
photocopy is not required from the publisher.
Original Authors
XIONG Bin East China Normal University, China
ZHENG Zhongyi High School Affiliated to Fudan University, China
English Translators
LIU Ruifang East China Normal University, China
ZHAI Mingqing East China Normal University, China
LIN Yuanqing East China Normal University, China
Copy Editors
NI Ming East China Normal University Press, China
ZHANG Ji World Scientific Publishing Co . , Singapore
WONG Fook Sung Temasek Polytechnic, Singapore
KONG Lingzhi East China Normal University Press, China
v
This page intentionally left blank
Introduction
vii
This page intentionally left blank
Contents
Introduction Vii
Chapter 1 Definition of Graph 1
Chapter 2 Degree of a Vertex 13
Chapter 3 Turin's Theorem 24
Chapter 4 Tree 40
Chapter 5 Euler's Problem 51
Chapter 6 Hamilton's Problem 63
Chapter 7 Planar Graph 75
Chapter 8 Ramsey's Problem 84
Chapter 9 Tournament 101
Solutions 110
Index 145
ix
This page intentionally left blank
Chapter 1 Definition of Graph ~
~ - .::.~-->
a) The general definition of graphs: a graph is a triplet (V, E, .p), where V and E are
two disjoint sets, V is nonempty and.p is a mapping from V x V to E. The sets V, E , .p are
vertex set, edge set and incidence function, respectively .
2 Graph Theory
~~l A
v,
G,
v, v;
G,
v]
G,
Fig. 1. 1
G G, G,
Fig. 1. 2
Definition of Graph 3
K,
Fig. 1. 4
V605 ' If any two of them shake hands, then there is an edge joining the
corresponding vertices.
In this example we are going to prove that there must be someone
who shakes hands with at least two persons. Otherwise, each of them
shakes hands with at most one person. Moreover, according to the
hypothesis each of them shakes hands with at least one person . Thus
we have each of them just shakes hands with one person. It implies
that the graph G consists of several figures that every two vertices are
joined by only one edge .
Suppose that G have r edges . So G has
2r (even) vertices. It contradicts the fact that
the number of vertices of G is 605 (odd).
We complete the proof. Fig. 1. 5
Example 2 Is it possible to change the state in Fig. 1. 6 to the
state in Fig. 1. 7 by moving the knights several times? (In the figures ,
W stands for white knight, and B stands for black knight . knight
should be moved by following the international chess regulation)
Solution As Fig. 1. 8 shows, the nine squares are numbered and
each of them is represented by a vertex in the plane. If the knight can
be moved from one square to anther square , then there is an edge
joining the two corresponding vertices, as Fig . 1. 9 shows.
~~
I 4 7
2 5 8
~~ Fig. 1. 6 Fig. 1. 7
3 6
Fig. 1. 8
9
Definition of Graph 5
'0 0
8
3
Fig. 1. 9
4
9
I W
8
5.
B
3 4
Fig. 1. 10
.
B 9
0
I W
8
5.
B
3
Fig. 1.11
4
2
W 9
Thus the beginning state in Fig. 1. 6 and the state in Fig. 1. 7 are
represented by the two graphs as in Fig. 1. 10, Fig . 1. 11, respectively.
Obviously, the order of the knight on the circle cannot be
changed from the state that two white knight are followed by two
white knight into the state that white knight and black knight are
interlaced. So it is impossible to change the states as required.
Example 3 There are n people A I , A 2 , . • . , A n taking part in a
mathematics contest, where some people know each other and any two
people who do not know each other would have common
acquaintance . Suppose that Al and A 2 know each other, but do not
have common acquaintance. Prove that the acquaintances of Al are as
many as those of A 2 •
Proof Denote the n people AI, A 2 , . .. , An by n vertices VI'
V2' . . . , V n. If two people know each other, then there is an edge
Al
then V i is not in N (V 2 ). Otherwise
and A2 have the common acquaintance A i .
V i in N ( VI) and
\V
'O'- :
" N(7J ,)
''''- -,"
" " N( v ,)
.... ---"
Vj ':
"
~.
I~~I
v, 2 v,
7~:~:~~J
v, 8 v,
Fig. 1. 14
S = ; (n - 1)(k +1).
For S = t + 1, we have
Hence we have n = 5.
Example 6 There are n (n > 3) persons. Some of them know
each other and others do not. At least one of them does not know the
others. What is the largest value of the number of persons who know
the others?
SolutionConstruct the graph G: denote the n persons by n
vertices and two vertices are adjacent if and only if the two
corresponding persons know each other.
For at least one of them does not know the others, in graph G
there are at least two vertices which are not adjacent. Suppose that
Definition of Graph 9
A 2n + 1 is a subset of a set B.
Suppose that
(1) each Ai has exactly 2n elements;
(2) each A i n Aj (1 ~ i <j ~ 2n + 1) has exactly one element;
(3) each element of B belongs to at least two Ai'S.
For which values of n can one assign to every element of B one of
the number 0 and 1 in such a way that Ai has 0 assigned to exactly n of
its elements?
Solution At first, the words "at least" in (3) can be replaced by
"exactly". If there is an elemental E Al n A 2n n A 2n +1 , then each of
the remaining 2n - 2 subsets A 2 , A 3 , . . . , A 2n - 1 has at most one
element of AI. Thus there is at least one element in Al but not inA2 U
A3 U ... U A2n-1 U A 2n U A 2n +l •
It contradicts (3).
Construct the complete graph K 2n+1' where every vertex Vi
must be even.
Conversely, if n = 2m is even, we assign the edges (v i ' V i-m) ,
10 Graph Theory
So 16n
(i2k - 1 + 25) (i2k - 1 + 21)
(i2k - 1)
Obviously, 0 , 12k - 1) = 1. So (i2k - 1) I 25 X 7. For 12k - 1
divided by 4 leaves 3, 12k - 1 = 7, 5 X 7, 52 X 7. By calculating 12k -
1 = 5 X 7 has the only integer solution k = 3, n = 6.
Next we construct a figure consists of 36 points . Each point is
incident to 15 edges and for any two points there are 6 points adjacent
to them .
Naturally, we can use 6 complete graphs K 6 . Divide the 36 points
into 6 teams and label the points in the same team. We get a 6 X 6
square matrix
Definition of Graph 11
1 234 5 6
612345
561234
456123
345612
2 3 456 1
For any point in the square matrix, it only connects with 15 points in
the same row, in the same column, or having the same label. It is
obvious that for any two persons there are 6 persons who have shaken
hands with them.
Exercise 1
(1) (2)
Fig. 1. 15
4 There are n medicine boxes. Any two medicine boxes have the
same kind of medicine inside and every kind of medicine is contained
in just two medicine boxes. How many kinds of medicine are there?
5 There are n professors A 1 , A 2 , ••• , An in a conference.
Prove that these n professors can be divided into two teams such that
12 Graph Theory
for every Ai' the number d i of the people whom he has acquaintance
with in another team is not less than d/ in his team, i = 1, 2, ... , n.
6 There are 18 teams in a match. In every round, if one team
competes with another team then it does not compete with the same
team in another round. Now there have been 8 rounds. Prove that
there must be three teams that have never competed with each other in
the former 8 rounds.
7 n representatives attend a conference. For any four represent-
atives, there is one person who has shaked hands with the other three.
Prove that for any four representatives, there must be one person who
shakes hands with the rest of the n - 1 representatives.
8 There are three middle schools, each of which has n students.
Every student has acquaintance with n + 1 students in the other two
schools. Prove that we can choose one student from each school such
that the three students know each other.
9 There are 2n red squares on the a big chess board. For any two
red squares, we can go from one of them to the other by moving
horizontally or vertically to the adjacent red square in one step. Prove
that all the red squares can be divided into n rectangules.
10 There are 2000 people in a tour group. For any four people,
there is one person having acquaintance with the other three. What is
the least number of people having acquaintance with all the other
people in the tour group?
11 In a carriage, for anym(m ~ 3) travelers, they have only one
common friend. (If A is a friend of B, then B is a friend of A.
Anyone is not a friend of himself. ) How many people are there in the
carriage?
12 There are five points A, B, C, D, E in the plane, where
any three points are not on the same line. Suppose that we join some
points with segments, called edges, to form a figure. If there are no
above five points in the figure of which any three points are the
vertices of a triangle in the figure, then there cannot be seven or more
than seven edges.
Chapter2 Degree of a Vertex
V,
V3 0-----~V ,
Fig. 2. 1 Fig. 2. 2
Since de v 1+1) + ... + d ev,,) are all even, the right sideof the
equality is even. However de VI), ... , d (v I) are all odd, then t must
be even so that d(vj) + ... +dev l ) is even. That is, the number of
vertices with odd degrees is even.
Example 1 Among n (n > 2) people, there are at least 2 persons,
where the number of their friends are the same.
SolutionWe denote the n people by the vertices VI , V2' ... , V n •
If two persons are friends, we join the corresponding vertices. Then
we get a graph. The assertion follows if we can find at least 2 vertices
Degree of a Vertex 15
However, not all of them are feasible. Note that a vertex with
degree zero could not be adjacent to any other vertex and that the
vertex with degree n - 1 must be adjacent to any other n - 1 vertices.
So in G, only the following degrees are possible:
or
1,2,3, .. . ,n-1.
The m cities on the south side are represented by Yl , Y2' ... , Ym and
Degree of a Vertex 17
IXlk=IEI=IYlk,
where 1X I , 1E I , 1Y 1 denote the numbers of the elements in sets X,
E, Y respectively. So 1X I = 1Y I , andn =m. Since 1X 1+1 Y 1~ 3,
then 1X 1= 1Y 1~ 2.
Deleting one edge from G, we can get a graph G'. If G' is not
connected, G' is composed of two connected components G l and G 2 •
Let
X = Xl U Xn Xl nX 2 = 1>,
Y = Y l UY2 , Y l nY 2 = 1>,
1996)
Proof 1 Construct a graph G: denote the 99 members by 99
vertices and join every two vertices whose corresponding members
know each other. The condition is that d (v) ~ 67, for all v E V. We
should prove that there is a complete graph K 4 in G. For any vertex u
in G, d (u) ~ 67, so there exists a vertex v such that there are at most
(99 - 1 - 67 = )31 vertices which are neighbors of v, but not of u.
Similarly , there are at most 31 vertices which are adjacent to u, not v .
That is to say there are at least (99 - 31 - 31 - 2 = )35 vertices adjacent
to both u and v. As shown in Fig . 2. 3, assume that vertex x IS
We need to prove that there exist 4 vertices which are not mutually
adjacent in G'. For a vertex u, choose a vertex v which is not adjacent
to u. In the remaining 97 vertices, the number of vertices that are
neighbors of either u or v could not exceed
x and know each other, and they can play bridge together.
y
Remark 1 Changing to 66, we might not be able to find out 4
people who know each other. The counter-example is shown in Fig. 2.
4. Separate the vertex set V into three subset {V I ' V2' . . . , V33}, {V34'
V35' and { V67 ' V68' . . . , V99 } ' Any two vertices in the same
. . . , V 66 }
6n ~ 2e,
{ V t ' V 2' ••• , v ,, } is the vertex set in graph G. Join 2 vertices whose
distance is 1. According to Theorem 1,
Degree of a Vertex 21
times, so
CD
~e 2 - e :::;;; n (n - 1) ,
n
1. e.
Then
e <-n J2 ~
+2- n . 2
~ 4
Exercise 2
have shaken hands with 6 people respectively. Prove that there must
exist 3 people who have shaken hands with each other among
themselves.
9 There are 14 members in a tour group. When they are resting
on a hill, they would like to play bridge, and each of them has all
cooperated with 5 of them before. There is a rule that 4 people can
play together only when any 2 of them have never cooperated with
each other. If so, they cannot go on after 3 rounds. At this time,
there comes another tourist, and he has never cooperated with the
members in the tour group. Prove that there must be another round if
the new comer joins the bridge.
10 For a vertex set P consists of any n vertices on the plane, the
vertex set is stable if the distance between any 2 of them is fixed.
Prove that the vertex set P consists of n (n :)0 4) is stable if any 3 of
Degree of a Vertex 23
them are not on the same line, and there are ~ n (n - 3) +4 pairs
and there is no edge whose two vertices are in the same subset. We call
such graph a k-partite graph denoted by G = eV 1 , V 2 , ••• , Vk ; E).
Fig. 3. 1 shows us a 2-partite graph which is also called bigraph.
Fig. 3.2 shows us a 3-partite graph.
AA
, '
Fig.3.1 Fig. 3. 2
Turtin's Theorem 25
[x] denotes the largest integer no more than x.) Complete bigraphs
K m • m andKm,m+1 contain no triangle, In Theorem 1, we can see that
these two kinds of graphs contain the most number of edges among the
graphs without triangles.
Theorem 1 If a graph G with n vertices contain no triangle, the
Since G contains no triangle, any two of v n , V,, - I ' ••• , Vn - d+1 are
not adjacent. So the number of edges of G satisfies
graph G. Prove that there must exist two triangles which have a
common edge in G.
Proof In general, we can replace 20 by more general number 2n
(n ~ 2). Now we use induction, if there are 2n (n ~ 2) vertices and
n 2 + 1 edges in a graph G, there must be two triangles which have a
common edge in G .
When n = 2, there are 4 vertices and 5 edges in the graph G .
Consider the complete graph K 4' there are (~) edges in K 4. It is not
difficult to prove that whatever edge we remove from K 4' there must
still be two triangles which have a common edge in G. So the theorem
holds when n = 2.
Suppose that the theorem holds for n = k (k = 2). Let G be a
graph with 2(k + 1) vertices which are denoted by VI' V2' . . . , V2k+2
and (k + 1)2 + 1 = k 2 + 2k + 2 edges. Note that
[ (2k : 2) 2 ] = [k 2 + 2k + 1] < P + 2k + 2.
According to Theorem 1, there must be a triangle in G. Without loss
of generality, we denote this triangle by L"> VI V2 V3 and d (v I) ~
d(V2) ~ d(V3).
number of edges which join the vertex set {VI' V2} to {V4' VS' . . • ,
V 2k +2 } is no more than ; (2k - 1). We remove the vertices VI , V2 and
the edges adjacent to them from G to get G'. The number of vertices
in G' is 2k and the number of edges is
e' ~ k 2 + 2k + 2 - 3 - ; (2k - 1)
= k2 +; k - ~ ~ k 2 + 1, since k ~ 2.
Turan's Theorem 27
in G .
Let the degree of vertex v; be d ; and denote the edge set of G by
E. If (v ; , v j ) E E, then there are d; + d j - 2 edges joining v;, v j
with all other n - 2 vertices. So there are at least d ; + d j - n pairs of
edges joining v;, v j with the same vertex . These edges together with
the edge (v ; , v j) form triangles. So there are at least d ; +d j - n
triangles containing (v;, v j) in G. Since we have counted every
triangle containing the edge (v;, v j) in G three times, there are
k =1- ~ (d ; +d j - n)
3 (Vi' 'lJj>EE
n
Since ~ d; = 2m, apply the Cauchy Inequality to CD and get
i= l
k ~ ; [ ~ (~d;) 2 - mn ]
= ; (4:2 - mn)
28 Graph Theory
= 4m(m _ ~)
3n 4'
em (n) = (n-k)
2 + (m - l) (k 2+l) , k = [nm J.
We leave it as an exercise.
Let G = (VI' V 2 , ••• , Vm ; E) be an m-partite graph G with n
vertices, and Pi = I v i I (~ :I Pi = n ) . We can show that the number
of edges in G is less than em (n) and the equality holds if and only if
G ~ T men). (We leave the proof as an exercise.) In other words,
T m(n) is the only m-partite graph with n vertices, which has the most
number of edges.
Clearly, any m-partite graph contains no K m + l • Furthermore,
Turan prove that T m(n) is the only m-partite graph with n vertices,
which contains the most number of edges and no K m+ I.
Theorem2 SupposeG contains noK m+ l , then e (G) ";;;em (n). The
equality holds if and only if G ~ T m (n).
This is Turan's theorem and we omit the proof. If you are
interested in it, you can read Graph Theory and Its Applications
written by J . A. Bondy and U. S. A. Murty.
Example 3 Let A I , A 2 , A 3 , A 4 , A s, A 6 be six points on a plane
and there are no three points on a line .
Turrin's Theorem 29
A,
A, A~A'
AJ A,
Fig. 3. 6 Fig. 3. 7
(3) According to the above two cases, let us begin our discussion:
In case CD, there are six K 4 : (AI, A 4 , As, A 6 ), (A 2 , A 4 , As, A 6 ) ,
(A 3 , A 4 , A s , A 6 ) , CA 2 , A 3 , A 4 , A s), CAl' A 3 , A 4 , A s), (AI,
A3 , As, A 6)'
In case (2) , there are four K 4 : (AI, A 3 , A s , A 6 ) , (AI' A 4 , As,
A 6), (AI, A 3 , A 4 , As), (AI, A 2 , A4 , As). So there must exist four
copies of K 4 •
Example 4 In a simple graph with eight vertices, can you find the
maximum number of edges of a graph which contains no quadrangle?
(The quadrangle consists of four vertices A, B, C, D and four edges
AB, BC, CD, DA . ) (China Mathematical Olympiad in 1992)
Solution The maximum number of edges is 11.
First, Fig. 3. 8 shows us a graph with 8
vertices and 11 edges, which contains no
quadrangle.
Next, we will prove the fact that if any
simple graph contains 12 edges, the graph must
contain a quadrangle. Fig. 3. 8
e < ! n C1 + J 4n - 3 ).
adjacent to Vi is (dCv2
i ))
. Because G contains no quadrangle, when V i
Otherwise , vertices pairs Cx, y) are counted in both (dC; ;)) and
So
2
--;;e
2
- e~ (n)
2 '
e 2 - ~e - ~n2en -1) ~ O
2 4 "'" .
e ~ ~ (1 + /4n - 3 ).
q2 + q + 1, l ~ ~qeq + 1)2 + 1, q ~ 2, q EN .
We know that any four points in the graph do not lie on one plane
and every point must lie on at least one line . So there exists a point
that lies on at least q + 2 lines. Prove that the graph must contain a
quadrangle in the space, consisting of four points A, B, C, D and
four lines AB, BC, CD, DA. eChina Mathematical Competition in
2003)
Solution The condition that any four points cannot lie on a plane
is to ensure that there are no three points on a line. So in terms of
graph theory, we only need to prove that the graph contains a
quadrangle. To solve this problem, we need to use the idea of Example
5, but we cannot use it directly. Consider the removal of the de VI )
vertices which are adjacent to VI CdCV1) ~ q + 2). There will be
( n - deVl»)
2 pairs of vertices left.
34 Graph Theory
Similarly.
(de v ) - 1)
2::
n
i~2
'2 = 2l - n +1 - d ev ) .
~ 21 { ~
n
[n - de V i ) J2 - ~ [ n - de V i ) J
n }
~ ~ {n ~ 1 [2l - n +1 - d ev I) J2 - [ 2l - n +1 - d eVi )] }.
That is to say.
en - D[n - devI) J [n - de v I) - 1J
~ [2l - n + 1 - de v I) J [2l - 2n + 2 - de vI )J
~ [q3 + q2 - d ev I) + 2J[q 3 - q + 2 - de v I ) J
= [ nq - q + 2 - de v I)J [ nq - q - n + 3 - de v I) ].
and
q [ n - d ( V I) - 1J ~ nq - 1 - n +3 - d ev ).
x"} whose diameter is 1, how many points pairs are there such that the
distance between two points in the point pairs is more than d? Here,
X s ), (X4' X6)' (X S , Xl)' (X6' X2) is1. So there are 9 point pairs in
X2Q---~-----bX,
But 9 is not the best answer for 6 points. Suppose we arrange the 6
points as Fig. 3. 10 shows us, namely, the vertices Xl' X 3 ' X s form a
regular triangle with edges of length 1. The vertices X2' X4' X6
construct a regular triangle the length of whose edges of length o. 8.
The center of the new triangle coincide with the center of D X l X 3 X S
and the edges of the new triangle are paralleled to those of D X l X 3 X S'
then the distance between two points in the point pairs other than (Xl'
36 Graph Theory
point pairs and the distance between two points in the point pairs is
more than 1. In fact, it is the best answer we can get. For the
there exists a point set {Xl' X2' .. • , Xn} whose diameter is 1, and
there are exactly [;3] point pairs such that the distance of two points
.
In each · ·IS more t h an
paIr J2
2.
Proof Draw a graph G: we denote n points by n vertices. Two
vertices are adjacent if and only if the distance of two vertices is more
For any four points on the plane, their convex hull could have
only three case: a line segment, a triangle, or a quadrangle, as
Fig. 3.11 shows us. Clearly in every case there is an angle L X iXj Xk no
more than 90 For the three vertices X i ' X j , X k' it is impossible that
0
•
the distance of any two vertices of the three points is all greater than
J2
2 and less than or equal to 1. Here, we denote the distance between
o......~'--c~--co>----o
x, ~I Xk x,
Fig. 3.11
Turan 's Theorem 37
e 3 (n ) = [n3
3
J.
We can construct a vertex set {x l ' X 2' ... , X n} which contains
3
[ n3 ] vertex pairs so that the distance of two vertices in each pair is
1.
more than The construction is as follows. Choose r so that 0 <
r < ! -1). (1 Then draw three circles whose radii are all 1 and the
distance of any two of their centers is all 1 - 2r. As Fig. 3.12 shows us,
weputxI' X2 ' ... , X[ -n inacircle, x [t J+ I' ... , x [~ J in another
circle and x [~ ] +I' . .. , x" in the third circle so
that the distance of XI and x" is 1. Obviously,
the diameter of this set is 1. Furthermore, d ( x i ,
3
different circles. So there exist exactly [n3 ] x,
Exercise 3
1X 1= 1Y I.
2 Prove by induction Theorem 1.
3 Draw a simple graph which contains 20 vertices, 100 edges and
no triangle .
4 Prove that if there are 2n + 1 vertices and n 2 + n + 1 edges in a
simple graph G, then G must contain a triangle.
S (1) The number of edges in a complete m-partite graph with n
then there must exist a (k + 1) -subset of X so that all k -subsets are red
k-subset.
10 Let K 3 • 3 be a graph. Prove that a graph with 10 vertices and
40 edges must contain a K 3.3.
11 In a circular city whose radius is 6 kilometers, there are 18
police cars making the rounds. They use wireless equipments to
communicate with each other. If the wireless is effective within 9
kilometers . Prove that at any time , there must exist two cars, each of
Turan's Theorem 39
CD In this book , "cycle" is actually a " closed chain" . It is different from the " cycle" in
general graph theory. T he "cycle" in graph theory is a "closed chain"vovI . . . v.,,(VO =v m ),
v,
Fig. 4. 1
l~
v, v,
Fig. 4. 2
v,
Fig.4.4
vertex.
We start from a pendant vertex v and we can end up at another
pendant vertex v'. So tree T has at least two pendant vertices.
Proof 2 Assume that f1. = uv 1 V 2 ••• V k V is the longest chain of T,
we can show that d (u) = d (v) = 1, i. e. u, v are pendant vertices.
In fact, if d (u) ~ 2, then there exists vertex w (w =I=- VI) adjacent
to u. If w is one of V2' ..• , V k' v, then a cycle occurs. It
contradicts the definition of tree. If w is different from V2' . . . , V k ,
v, then wuv 1 ••• V k V is a chain longer than f1.' aeon tradiction. So
d (u) = 1. Similarly, d ( v) = 1. Hence tree T has at least two
pendant vertices.
Remark Proof 1 is "by construction" and Proof 2 is by the
method of "the longest chain". They are two very important methods.
Theorem 2 Let n be the number of vertices of T, then the
number of edges e = n - 1.
Proof We prove by induction on n .
When n = 1, e = 0, the conclusion holds. Suppose the conclusion
holds for n = k. Let T be a tree on k + 1 vertices (k ~ 1) . By Theorem
1, T has at least two pendant vertices. Let v be one of them, then
deleting v and its adjacent edges. We can get tree T' on k vertices.
According to the induction hypothesis, T' has k - 1 edges. So the
number of edges of T is k, hence the conclusion holds for any natural
number n.
Theorem 3 Let T be a graph with n vertices and e edges. Then
the following three propositions are equivalent:
(1) T is a tree;
(2) T has no cycle, and e = n - 1;
(3) T is connected, and e = n - 1.
Proof (1)~(2):
This contradicts e = n - 1.
Now by induction on n, we will show that T has no cycle.
When n = 2, e = 1, T is has no cycle.
Suppose the proposition holds for n = k. T is a graph on k +1
vertices, v is a pendant vertex. Deleting v and its adjacent edges, we
obtain graph T'. By induction and T' has no cycle. Add v and its
adjacent edges and we can obtain graph T again. Hence the
proposition is correct.
Theorem 3 shows that any two conditions of "connected",
"having no cycle" , "e = n - 1" imply that T is tree. Hence they all can
be the definition of a tree.
Example 1 If T is a tree, then
( 1) T is connected, but after deleting any edge of T, the
obtained graph G is disconnected;
(2) T has no cycle, but after adding any edge, the obtained graph
G contains only one unique cycle.
Conversely, if T satisfies (1) and (2), then T is tree.
Proof (1) If graph G is connected, then G is still a tree, so G has
n - 1 edges, equal to the number of edges of T, a contradiction.
44 Graph Theory
n "
But .z= e
i= l
i = 14, .z= Vi
i= l
= 20, so 14 ~ 20 - n, n ~ 20 -14 = 6. Since
Fig.4.S
loss of generality, we suppose that v i has played a game with v k' but
v j has not played a game with v Add an edge between v j and v j ,
k.
label k . We obtain a graph with n vertices and n edges, and there are
n edges with n different numbers.
The graph with n vertices and n edges must have a cycle. Suppose
Tree 47
means adding or subtracting a player from the players and the added
player and the subtracted player are different. Going through a cycle,
we can return to Vi } , i. e. after adding or subtracting players from the
players who have played with Vi, ' the result is the same as the original
opponents of V i, • A contradiction.
Hence, there is at least one player who can be removed in n players.
Example 7 In a lecture, there are five mathematicians. Each of
them took a nap twice and every two of them took naps at the same
time. Prove that there must be three persons who took naps at the
same time. (USA MO 1986)
Proof Denote ten naps of five mathematicians by vertices VI , V2'
. . . , VlO' add an edge between V i and V j if and only if i th and j th
took naps at a common time. We obtain a graph.
By hypothesis, every two mathematicians took naps at a common
el)
V 11 v(ll
"
Choose v~l) as a representative of the residents, and delete edge
(v\P, vW). Then T 1990 is divided into two trees. In the first tree, the
distance of every vertex v and v~p is no more than 10. Otherwise, in
tree T 1990 ' the chain from v to v~1) is longer than the chain from v~1) to
v~1). Hence the news known to the representative v\P will be known to
the persons in the first tree within ten days. The latter tree also have a
longest chain, note that
V (2) V (2)
11 m ,
Fig. 4. 6
Continue in this way. After v~;) (i ~ 179) has been chosen, the
remaining tree has at most 11 vertices. At the same time, the number
of representatives is i + 1 ~ 180. The proposition holds. Otherwise we
can find the representatives
(1 79)
... , V11
vertices. Letv1v2 ... Vk be its longest chain. Ifk ~ 11, then choose V11
as the 180th representative v~1 80) . If k < 11, then choose V 1 as the
180th representative v~1 80) In this way, the 180 representatives
are obtained
Tree 49
... ,
as required.
Exercise 4
2n - 2. Prove that there exists a tree where the degrees of its vertices
are d 1 , d 2' ••• , d n •
7 There are n (n ~ 3) segments on the plane where any three of
50 Graph Theory
them have a common end, then these n segments have a common end.
8 Given a number table with n rows and n columns, every two
rows are different. Prove that there must exist a column, after
deleting it, every two rows are still different.
9 Let V be the set of all the vertices of G, E the set of all the
edges of G. Prove that if I E I ~ I V I + 4, then there must be two cycles
which have no common edges. (Posa Theorem)
10 In an evening, 21 persons make phone calls, someone finds
that these 21 persons call 102 times and every two persons call at most
once . He also finds there exist m persons, the first one calls the
second, the second calls the third, ... , the (m - 1) th calls the m th ,
and the m th calls the first. He does not tell the value of m, only says
m is odd. Prove that there exist 3 persons among 21 persons, each of
the three persons calls each other.
11 A country has a number of cities. There are roads connecting
the cities and each city has 3 roads connected to it. Prove that there
exist roads forming a cycle whose length is not divisible by 3.
Chap ter 5 Euler's Problem
Fig. 5. 1
if there is an edge entering V i ' then there is also an edge leaving Vi.
The entering and . leaving edges cannot be repeated. Hence there are
always double edges adjacent to V i . Therefore, graph G has at most
two vertices with odd degrees, i. e. Vl and V n +l' If G is a cycle, by the
above reasoning, Vl and V n +l are also even vertices. Hence , if G is a
chain (cycle), then the number of vertices with odd degrees in G is
equal to 2(0). This is the necessary condition that G is a chain (cycle) .
In other words, if the number of vertices with odd degrees in G is
more than 2, then G is not a chain and it cannot be drawn without
lifting one's pen .
In Fig. 5. 2, A, B, C, D are all odd vertices, hence this graph is
not a chain and it cannot be drawn without lifting one's pen. That is to
say, it is impossible for a traveler to go through each bridge once and
only once.
The following is "the solution to Euler's problem".
Theorem 1 A finite graph G is a chain or a cycle if and only if G
is connected and the number of vertices with odd degree in G is equal
to 2 or O. When and only when the number of vertices with odd
degrees in G is equal to 0, the connected graph G is a cycle.
Proof The necessity has been proved above, and next we prove
the sufficiency.
First, we prove: If G is connected and the number of odd vertices
is 0, then G must be a cycle .
Start from any vertex Vo of G and go to Vl through the adjacent
edge el . Since d (V l ) is even, go to V2 through the adjacent edge e2
from Vl , and continue in this way. Each edge is chosen only once and
we must return to Vl after several steps, so we obtain a cycle f1. 1 :
Euler's Problem 53
all the rooms (including the living room) through all the doors and go
through each door only once?
front door
Fig. 5. 3 Fig. 5. 4
Fig. 5. 5 Fig. 5. 6
56 41 58 35 50 39 60 33
47 44 55 40 59 34 51 38
42 57 46 49 36 53 32 61
45 48 43 54 31 62 37 52
20 5 30 63 22 11 16 13
29 64 21 4 17 14 25 10
6 19 2 27 8 23 12 15
1 28 7 18 3 26 9 24
BCDACEABDE.
56 Graph Theory
For ant B, it can start from B and arrive at E along this chain.
But vertex A is an even vertex, it is impossible to go through all
edges of C from A to E without repeating. Ant A must repeat at least
an edge. So ant B may choose a suitable route to reach E earlier than
ant A .
Example 5 As shown in Fig. 5.10, the three vertices of the big
triangle are dyed in colors A, B, C. Choose some points in the
interior of the big triangle, divide the big triangle into several small
triangles. Each of the two small triangles has either a common vertex,
or a common edge, or no common vertex at all. Color the vertices of
each small triangle by one of A, B, C. Prove that whatever way you
color, there must be a small triangle whose three vertices are all
different.
A A
G G'
Fig. 5.10 Fig. 5.11
Proof Choose a point outside the big triangle and a point in the
interior of small triangle as vertices, respectively. When two faces
have a common edge AB, add an edge between the corresponding two
vertices, and obtain graph C', as shown in Fig. 5. 11.
A small triangle with its vertices colored A , B, C corresponds to
the any vertex C' with degree 1. Other small triangles correspond to
°
the vertices of C' with degree or 2. Since the degree of a vertex
outside the big triangle is 1 and the number of odd vertices is even,
Therefore C' has at least an odd vertex v except u . That is to say, in
Fig. 5. 11, there is at least a small triangle whose three vertices have
three colors A, B, C, respectively.
Euler's Problem 57
3 I i - 2,3 I n - i + 2,
drawn without lifting one's pen, each vertex is an even vertex. So the
number of triangles at each vertex is odd. In the above coloring
method, all the edges of the polygon belong to the triangles with the
same color. Let it be black (see Fig . 5.14). Denote
the number of edges of white triangles by m.
Clearly 3 1m, each edge of the white triangles is
also that of the black triangles . However, all the
edges of the polygon are those of the black
triangles, so the number of edges of the black Fig. 5.14
triangles is m + n, so 3 1n .
Example 7 Suppose n > 3 , consider the set E of 2n - 1 distinct
points on a circle . Color some points of E black, and other vertices no
color. If there exists at least a pair of two black points such that
between two arcs with the two black points as their endpoints we can
find one of them whose interior (not including endpoints) contains
exactly n points, then we call the coloring "good" . If each coloring
with k points of E colored black is good, find the minimum value of
k. (31 th International Mathematical Olympiad)
Proof Denote the points of E by V1' V2' • •• , V 2n -1 according to
the anti-clockwise direction and add an edge between v i and v i + ( n - J) ,
{vi i i = 3k, k = 1, 2, . . . , 2n 3- 1 } ,
{vii i = 3k + 1, k = 0, 1, ... , 2n 3- 4 } ,
{vii i = 3k + 2, k = 0, 1, .,. , 2n 3- 4 }.
60 Graph Theory
1 (2n
to choose at most:2 -- - -1 - 1 )
3 =
n - 2 vertices
-3- . and every two a f
Exercise 5
r 1
Fig. 5,15
Euler's Problem 61
V)
Fig. 5. 16
Fig. 5. 17
Chapter6 Hamilton's Problem
This method can always be used on simpler graphs and often to those
graphs which contain a Hamiltonian chain (cycle).
Example 2 In an international mathematics conference, there are
seven mathematicians come from different countries. The language
they can speak is
A: English
B: English and Chinese
C: English, Italian and Spanish
D: Chinese and Japanese
E : German and Italian
F: French, Japanese and Spanish
G: French and German
How can we arrange these seven mathematicians round a table so
that everyone can talk with the person beside him?
Solution We denote the seven mathematicians by seven vertices
A, B, C, D, E, F, G. If two persons can speak a common language ,
then we join the vertices representing them and we get a graph G. As
Fig. 6 . 2 shows us, the problem of arranging seats becomes a problem
of finding a Hamiltonian cycle. Arrange the seats in the order of the
cycle, so that everyone can talk with the person beside him.
A (En) A
B(En, Ch)
B
Fig. 6. 4 Fig. 6. 5
and V p are only adjacent to the vertices of the chain. There must exist
a cycle with vertices Vj' V2' ... , v p. Suppose the vertex set adjacent
to Vj is {Vjl' Vj2' ... , V jk }. Here Vjl' VJ2' •.. , V jk are the vertices
on the chain and p < n.
If Vj is adjacent to v p' then there exists a cycle Vj V2 . .. V pVl .
If Vj is not adjacent to v p' then there exists a vertex v [(2 <l <
p) which is adjacent to Vj and v [-1 is adjacent to v p as Fig. 6.8 shows
us. If not, v p is adjacent to p - k -1 vertices at most, which excluding
V j l - l ' Vj2-j, ••• , Vjk-1 and Vp' means that
d (v 1) + d (v p) < k + (p - k - 1) = p - 1 < n - 1.
~ v,
'".~l _-----
__ -]--_VP
"""""~"------~~_----- V,-l
- - - - - - - - - - - - - - - - VI V I .. \
Fig. 6. 8
68 Graph Theory
~: _
_L _ v:;jv,
"''''''' , VI. V " <l ......... ..- V,.--2
Fig. 6. 9 Fig. 6. 10
dC v ) + dC v' ) ?:; n,
Then among V2' V3' ... , V,, - I , there must be a vertex v i so that
VI is adjacent to Vi and v" is adjacent to Vi-I as Fig. 6.11 shows us.
Otherwise, there are d(vI) = k vertices Vi, ' Vi 2 , ••• , Vi k (2 :s;;; i l :s;;;
i2 :s;;; ••• :S;;;i k :s;;; n -1) adjacent to VI' and Vn is not adjacent to Vi,-I'
V i 2 -1' ••• , V ik - l ' So
then
dev I ) + d(v,.):S;;;k + n - l - k =n - 1 <n,
V, _ l
Fig. 6.11
cycle.
Example 6 Arrange 7 examinations in 7 days so that the two
courses which are taught by one teacher cannot be arranged in two
consecutive days. If every teacher can teach at most 4 courses which
have examination. Prove that it is possible to arrange the examinations
in the above way.
Solution Suppose the graph G contains 7 vertices. Every vertex
represents an examination. If two courses are not taught by one
teacher, then we join the two vertices representing the two courses.
Since the number of courses taught by one teacher is no more than 4,
Hamilton's Problem 71
the degree of every vertex is at least 3. The sum of degrees of any two
vertices is at least 6. By Theorem 2, G contains a Hamiltonian chain.
Since in this chain every two vertices which are adjacent represent two
courses which are not taught by one teacher, we can arrange 7
examinations in the order of vertices in this chain.
Example 7 A factory produces two-color cloth using 6 distinct
colored yarns. Among six kinds of yarns, every color must be matched
in groups with three other colors. Prove that it is possible to choose
three kinds of two-color cloth so that all 6 colors are present.
Proof We denote six colored yarns by six vertices. If two colors
are in the same group, then we join the vertices of the two colors, and
we get a graph G. What we know is that every color can be matched in
groups with three other colors. For any vertex v j , d (v j) ;? 3, what we
will prove is that graph G contains three edges, any two edges of
which contain no common end.
For any vertex v in the graph G, by Theorem 4, G contains a
Hamiltonian cycle which we denote by VIVZV 3 V4VSV6VI. Then edges
(VI' V 2 ) ' (V3' V4)' (v s ' V6) are the three edges which contain no
common vertex.
We always use the fact that the graph satisfies the sufficient
condition to determine that the graph is a Hamiltonian graph and the
fact that the graph does not satisfy the necessary condition to
determine that the graph is not a Hamiltonian graph. Next we give a
necessary condition.
Theorem 5 If G contains a Hamiltonian graph, remove several
vertices VI' VZ, . . . , V k and their adjacent edges from the G to get a
new graph G', then the number of connected components in G' is no
more than k.
Proof Suppose c is a Hamiltonian cycle in G. After removing
several vertices VI' vz, ... , V k and their adjacent edges from G, the
cycle c can be divided into at most k parts. So the number of
connected components in G' is at most k.
Example 8 Prove that there is no Hamiltonian graph in
72 Graph Theory
V,
Fig. 6 . 13.
Proof Remove the vertices VI' V 2 and
their adjacent edges from Fig. 6. 13. We
obtain G' with three connected components.
It does not satisfy the necessary condition of
Theorem 5. So there is no Hamiltonian graph
in Fig. 6.13. V,
i +j - k +l (mod 2n ) .
U o + i , ) + U I +i 2 ) + U 2 +i 3 ) + .. . + U 2n - 1 + io)
= 0 + 1 + 2 + ... + 2n - 1 = 2n 2 - n
- n(mod 2n) .
= 2 (0 + 1 + 2 + ... + 2n - 1) = 2n 2 - n
= 2n(2n - 1)
= O(mod 2n).
Hamilton's Problem 73
Exercise 6
four dishes. Can this chef cook four dishes so that he uses 8 distinct
materials?
9 All the subsets of a finite set can be arranged side by side in a
way so that every two adjacent subsets differ only in one element.
10 In a plane, a graph with n vertices and several edges is not a
Hamiltonian graph. But if we remove one vertex and its adjacent edges
from the graph, the graph will become a Hamiltonian graph. Find the
minimum n.
11 Around a table there sit at least five persons and it is possible
to rearrange their seats so that beside everyone there are two new
neighbours.
Chap ter 7 Planar Graph
~ -=--:::..--
( I) (2)
Fig. 7. 1
v -e +1 = 2.
(ii) Add a new edge to join two vertices of G as Fig. 7. 3 (2) shows
us. Then both Ik' ek are added by 1, V k does not change. So
v'
(I) (2)
Fig. 7. 3
2
belongs to the boundaries of at most 2 faces. So 2e ?:?- 31, and 1 ~ 3e.
2
2 = v - e +1 ~ v - e + 3e ,
that is
e ~ 3v - 6.
e ~ 3v - 6.
41 ~ 2e, 1 ~ ~.
Use Euler's Formula
e
2 = v-e + l ~ v-e+2'
that is
e ~ 2v - 4.
78 Graph Theory
MM 0)
Fig. 7. 4
(2)
Euler's Formula
Fig. 7. 7
80 Graph Theory
So,
2e ~ 8 + 3 (v - 4).
Using
v-e + n = l,
3(e + 1) = 3v + 3n ~ 2e + 4 + 3n,
that is, e ~ 3n + 1.
Draw n -1 lines crossing an edge of a square such that all the lines
are parallelled to their adjacent edge and divide the square into n
rectangles. The number of edges is
4+3(n - 1) = 3n+1.
1 • f~ + 2 • f: + 3 • f ~ + ... = n - 2. (3)
Exercise 7
segments in one color . Without loss of generality, let the three line
segments be AIA 2' A IA 3 , AlA4 which are colored red. (We denote
red by a solid line and blue by a dotted line.) If DA2A3A4 are blue
(see Fig. 8.1), then it is a monochromatic triangle. If in DA2A 3A4'
there are at least one edge, for example, A2A 3 is red (as Fig. 8. 2
shows us), then D AlA2A3 is a monochromatic triangle. In other
words, in either case there is a monochromatic triangle.
AI AI
A,
A2
A2
A, A,
Fig.8.l Fig. 8.2
b) Vice versa, it is easy to prove that the two-color complete graph K 5 without
monochromatic triangle consists of two pentagon with different colors. In other words, in the
two-color complete graph K 5 , if there are no blue triangle and pentagon, then there must be a
red triangle.
86 Graph Theory
(v s ' V 9 ). We call I and II, II and ill, ill and N adjacent groups.
Except VI , two vertices belonging to one group are not adjacent, two
vertices belonging to two different adjacent groups are joined by a
solid line (red) and two vertices belonging to two different groups
which are not adjacent are joined by a
dotted line (blue). Fig. 8. 4 shows
v,
Choose one end V I ' V2 ' V 3 from e l ' e2' e3' respectively. Then we
delete the three vertices from K 9 and the remaining 6 vertices form a
graph K 6 ' So if we color the graph by red and blue, the graph must
contain a monochromatic triangle.
So n = 33.
To generalize Theorem 1, we first need to increase the number of
colors.
We use k colors CI' C2' •.. , Ck to color the complete graph K".
We call the complete graph K" k-color complete graph K " if every
edge is colored in one color. We can imagine if n is large enough,
k-color complete graph K" must contain monochromatic triangle. We
denote the least n by r k' In Theorem 1, r2 = 6. It is clear that rl = 3.
88 Graph Theory
k' k'
r k ~1 + 1 +k +k(k - 1) + "'+2! + 1f + k!.
r k+ 1 ~ n = (k + 1) (r k -1) + 2.
(2) Apply induction. Whenk = 1, rl =3 ~ 1 + 1 +1. Suppose that
the property is true for k, then by (1) and the induction hypothesis,
we get
Ramsey's Problem 89
rk +1 :s;; (k + 1 )(rk - 1) +2
:s;; (k + 1) [ 1 + k + k(k - 1) i i
+ ... + ; + ~ + k ! ] + 2
= (k + 1) + (k + 1)k + (k + 1)k (k - 1) + ...
+ (k + 1)! + (k + 1)! + (k + 1)' + 2
2! 1! .
= 1 + 1 + (k + 1) + (k + l)k + ...
+ (k + 1)! + (k + 1)! + (k + 1)'
2! 1! .'
So the property is also true for k + 1.
If we make use of the expanding formula of base number of the
natural logarithm in advanced mathematics
shows us, a solid line represents a red edge, a dotted line represents a
blue edge and no line represents a yellow edge. This means that r 3 ~
17. So r 3 = 17.
We can have another generalization of Theorem 1.
Suppose every edge of the complete graph K n is colored in red or
blue, which means that K" is a two-color (red, blue) complete graph
K". For two constant natural numbers p, q, when n is large enough,
the two-color Cred, blue) complete graph K" must contain a red K p or
a blue K q . We denote the least n satisfying the above proposition by
rCp, q). We also call rCp, q) the Ramsey number.
Using the concept of subgraph and complementary graph, we call
rCp, q) the minimum n so that any n-subgraph G of the complete
graph K n contains a complete subgraph K p or its complementary graph
G contains a complete subgraph K q •
By definition and Theorem 1, we know that r (3, 3) = r2 = 6.
Furthermore, it is easy to find thatrCl, q) = rCp, 1) = 1.
In order to understand the next general conclusion of r Cp, q), we
prove an example: r (3, 4) = 9. First prove r (3, 4) ~ 9 and we can
also give another example with the same form as Example 1.
Example 4 Prove that among any nine persons, you can find
three persons knowing each other or four persons not knowing each
other.
ProofWe denote nine persons by nine vertices AI' A 2' . . . ,
A ~. We join every two vertices and if A; knows A j' then color
A;A j red. Otherwise, we color it blue. What we need prove is that
in the two-color complete graph K 9 there must exist a red K 3 or a
blue K 4.
If a vertex is adjacent to no less than four red edges, we denote
them by A t A 2' A t A 3 ' A t A 4' A t A 5 . If there is an edge joining
A 2 , A 3, A 4 , A5 by a red line, for example A 2A 3 . Then 6 A tA2A 3
is a red triangle. If there is no edge join A 2' A 3 ' A 4' A 5 by a red
line, then A 2, A 3 , A4 , A5 form a blue triangle. We complete the
proof.
Ramsey's Problem 91
The inequality holds when rCp -1, q) and rCp, q - 1) are all even.
We prove the theorem using subgraphs and their complementary
graphs . The proof of (3) is very difficult. We may refer to the proof
of Example 4 .
Proof C1) Let G be a graph with q vertices . If two vertices in G
are adjacent, G contains K 2. Otherwise G contains a K q ' So r C2,
q) ~ q. Since q - 1 vertices which are not adjacent to each other form
a graph G. Obviously G contains no K 2 and its complementary graph
92 Graph Theory
GcontainsnoK q . SorC2, q) ~ q.
In summary, rC2, q) = q. Similarly, we can prove rCp, 2) = p.
(2) If G contains rCp, q) vertices, then G also contains r Cp, q)
vertices. So G contains K p or G contains K q. In other words, G
contains Kq or G contains K p. So rCp, q) ~ rCq, p). Similarly, rCq,
p) ~ rCp, q). SorCp, q) = rCq, p).
(3) SupposeG containsrCp, q - 1) +rCp - 1, q) vertices, and VI
is a vertex of G.
IfdCvI) ~ rCp - 1, q), let () = rCp - 1, q) vertices be Vu
V3' ... , 1.S, 1.S+1 which are adjacent to VI. Then we remove other
vertices and their edges from G to get G I . According to the definition
of () = r Cp - 1, q), G I contains K P- I or G I contains K q. If G I contains
K p- I' then in G, K p-I and VI form a complete graph K p. If G I
contains K q' then G also contains this K q •
If the number of the vertices adjacent to VI is less than rCp - 1,
q), then V I is not adjacent to at least r Cp, q - 1) vertices. We denote
the vertices not adjacent to VI by VZ, V3' ... , V s ' V,+I' where
£ = rCp, q - 1). We remove the vertices except vz, V3' ... , V,+I and
their adjacent edges to get G z . According to the definition of £ = rCp,
q - 1) , Gzcontains Kp or G z contains K q- I . If G z contains K p , G also
side is (4-1 2) = 2.
~ (P + q - 3)+ (P + q - 3)
p - 2 p - 1
= (P + q - 2).
P- 1
~ 3 4 5 6 7 8
28
3 6 9 14 18 23
29
25 34
4 9 18
28 36
25 42 51
5 14
28 55 94
34 38 102
6 18
36 94 178
colored in red if and only if A. and Aj know each other. We use the
language of graph theory to re-phrase this problem: In a red-blue two color
complete graph K tOO' if the number of red edges going out of every vertex is
at least 67, then K IOU contains a red complete subgraph K 4 •
Take one vertex AI. The number of red edges induced by it is no
less than 67, so there must exist a red edge A I A 2 • Since the number of
red edges induced by A2 is no less than 67, the number of blue edges
induced by Al and A2 is at most 32 X 2 = 64. They involve 66 vertices
and there must exist one vertex, for example A3 so that AIA3 and
A2A 3 are red edges. The number of blue edges induced by AI, A 2 , A3
is at most 32 X 3 = 96 and these blue edges involve 99 vertices. There
must exist one vertex A4 so that AIA4' A 2A 4 , A3A4 are red edges. So
the complete subgraph K4 with vertices AI, A 2 , A 3 , A4 is red.
Example 8 We use pentagons AlA2A3A4AS and BlB2B3B4BS as
the top and bottom faces of a prism. Every edge and every line
segment AiBj' where i, j = 1, 2, ... , 5, are colored in red or blue.
Every triangle which uses a vertex of the prism as its vertex and a line
segment which has been colored as its edge is not a monochromatic
triangle. Prove that the ten edges in the top and bottom faces are
colored the same color. (The 21th IMO)
Proof First we prove that the five edges on the top face are
colored the same color. Otherwise, there are at least two edges in the
pentagon which are not monochromatic. So there are two adjacent
edges such as A I A 2 , AlAs which are not monochromatic. Without loss
of generality, we suppose that AlA2 is red and AlAs is blue. Among
the edges joining AI and B l , B 2 , B 3 , B 4 , Bs there are at least 3
monochromatic edges. Let AIB i . AIBj' AIBk be red edges (i, j, k
are distinct). Since 6A I BiB j is not monochromatic, BiB j is a blue
edge. Similarly, A2Bi is also a blue edge. We can also know that A2B j
is a red edge. Then 6AlA2Bj is a red triangle. It is a contradiction.
Similarly, we can prove that the five edges on the bottom face are
also monochromatic.
If the edges in the top and bottom face are not monochromatic.
98 Graph Theory
monochromatic edges . Let them be red edges . The five edges are
induced by {us, U9 ' U lO} , so there must exist a vertex which is
Ramsey's Problem 99
adjacent to two red edges which are U8U6, U g U7' As Fig. 8. 8 shows,
there must also be another red triangle DU6U7US.
".~"
monochromatic triangles with common edge and
the same color. Otherwise, the 2-color complete
graph K s contains no monochromatic triangle. It
IS easy to know that Ks contains two U9 .~~ - - - - - - - -.. :~.UIO
Exercise 8
1 In the space, there are six points. Join every two of them and
color the lines in red or blue. Prove that there must be two
monochromatic triangles.
2 In the space, there are eight points. Join every two of them
and color the lines in two colors. Prove that there must exist three
monochromatic lines which contain no common point.
3 In the space, there are six points. Any three points are not the
vertices of an equilateral triangle. Prove that among these triangles,
there is one triangle whose shortest side is also the longest line of
another triangle.
100 Graph Theory
U = {(v ,' V2)' (V 2' V3) ' ( vs , V2) ' (vo V2), ( V4' V6),
( VS , V6 )' ( VS , V 4), ( V3 ' v s ), ( V4 ' vs ) } .
=d - (V1) +d - (V 2 ) +"'+d-(v n )
1
= 2n(n -1).
Proof Since every arc of K" induces one in degree and one
outdegree and there is only one arc joining every two vertices, the sum
of indegree of every vertices in K n is the same as the sum of outdegree
of every vertices.
d +(V1) +d+(V2) + ... +d +( v n )
So
wf +W ~ + ... +W~ = If + n + ... + l~.
by T. Let us calculate IS I.
~Si = 99 X 48.
i= 1
IS I= ~
99
(
S.)~ 99 x (48) .
I
1~ 1 3 3
more than
from and to every station Ai be both 48. Every station has two two-
way channels and there are only type S groups of bad four-stations and
no type T groups of bad four-stations.
We put 99 stations on the vertices of an inscribed polygon with 99
sides and assume the longest diagonals of the regular polygon with 99
sides all two-way channels. So every vertex is adjacent to two two-way
channels. For station A i , there are one-way channels leaving Ai and
joining the next 48 stations in the clockwise direction, and one-way
Tournament 105
station groups.
Theorem 2 There exists a vertex in a tournament so that there is a
path from it to any other vertices. The maximum length of the paths
is 2.
Proof Suppose that the vertex with the maximum outdegree of a
tournament Kn is v\. We denote the end point set of the arcs whose
starting point is V1 by N+ (v 1). If the conclusion is false, there must be
a vertex V 2 (v 2 eft v \ ), where v 2 tl: N + (v \ ). For every vertex u E
N+ (v \) , there is one arc (V2' u) from V2 to u together with the arc
(V2' v\) . So d+ (v 2) "?:- d+ (v \) + 1, which contradicts the fact that
length is n - 1.
Proof Apply induction on the number of vertices n. When n = 2,
clearly the proposition is true.
Suppose the proposition is true for n ~ k. When n = k + 1, from
k + 1 vertices we take a vertex v . Remove v and the arcs adjacent to
v from R u 1 . By induction, R k+ 1 - v contains a Hamiltonian path VI'
must be an i C1 ~ i ~ k - 1) so
that the arcs (v;, v), (v, Vi + I) VI V2 v)
and draw arcs from V'to everyone of VI' V2' ... , V k where (k =
d+ (v)). Then there must be V j C1 ~ j ~ k) so that there is an arc from
Vj to v. Otherwise, d+ (v) ~ k +1 > d+ (v') and v, v', V j form a
triangle . We have proved the sufficient condition .
If the outdegree of every vertex of K n is different, we can prove
by induction that K n contains no triangular circuit. When n = 3, it is
easy to see that the outdegree of a triangle is 0, 1, 2 and the triangle
cannot form a circuit.
Suppose the proposition is true for n = k. Consider the tournament
K n +I ' If the outdegree of every vertex is different, they are 0, 1,
2, "', k in order. Supposed+(v ' ) = k. Remove the vertex v' and its
adjacent arcs. By induction hypothesis, Kk - v' contains no triangular
circuit. Clearly K k+1 contains no triangular circuit. We have proved
the necessary condition.
Exercise 9
superior to B and we also call the team superior to any other team the
champion. According to this regulation, can two teams both win the
championship?
5 n players take part in a match in which everyone plays with
several other players. Suppose that there is no tie in a game . If the
result that VI defeats V2' V2 defeats V 3 ' . . . , V k defeats VI does not
appear. Prove that there must be a player who wins all games and
another player who loses all games.
6 If among n persons v I ' V2' . . • , V n every two persons v i and
v j have one ancestry v k. Everyone can be an ancestry of oneself.
Prove that the n persons have a common ancestry.
7 A, B, C, D play table tennis and every two persons should
play against each other. At last, A defeats D and A, B , C win the
same number of games. How many games does C win?
8 n (n:;?o 3) players take part in a round robin. Every pair should
playa game and there is no tie . There is no player who defeats all
other players. Prove that among them there must be three persons A ,
B, C so that A defeats B, B defeats C and C defeats A.
9 There are 100 species of insects. Among every two of them
there is one species who can eliminate another species. (But A
eliminates B, B eliminates C, which does not mean that A eliminates
C . ) Prove that the 100 species of insects can be arranged in an order so
that any species can perish another species next to it.
Solutions <1
--.::.--=::::.:::.,--.:.:,
Exercise 1
Since not all simple graphs are complete graphs, then e ~ n en; 1) .
e,
( I)
Fig. 2
Solutions 111
squares:
When n = 2, there is a graph in the shape of the letter T with two
rectangles 1 x 3 and 1 x 1 satisfying the requirement.
When n =F 2, consider the T -shaped graph at the top-left corner of
all the squares. After removing these two squares, we get at most two
connected graphs .
If the number of the red squares of the two connected subgraphs is
odd after removing the two squares at the top-left corner, then remove
the two rectangles 1 x 3 and 1 Xl. It is easy to know they are also
connected and the number of red squares is even. In summary, when
n = k + 1, the conclusion is true. So the conclusion is true.
10 If 2000 members know each other, then the number of all the
members in the delegation is 2000. Therefore, we suppose that two
members u and v do not know each other. We prove in three steps.
( i) Any two members other than u and v know each other.
Suppose that a and b are another the two members. By the hypothesis,
among the four members a, b, u, v, there must be a person who
knows another three persons. The person must be a or b, which means
a and b know each other.
(ii) If u and v know everyone of the remaining 1998 persons,
then in the delegation there are 1998 persons who know all the other
persons. Suppose that a is any member other than u, v. By the
hypothesis, a knows u, v. Suppose that b is another member. By the
above proof, a and b know each other. By the fact that b is arbitrary,
a knows every other member. Also by the fact that a is arbitrary, the
1998 members in delegation other than u and v know all other
members.
(iii) If one of u, v does not know all other 1998 members, then
there are 1997 members knowing all the members. Suppose, other
than v, u does not know another member w. Let a be anyone of 1997
member other than u, v, w. By the hypothesis, among a, u, v, w
there is only one person a who knows the other three. It means that
each of u, v, w knows the other 1997 persons of the delegation.
114 Graph Theory
A m+l are friends. Next we will prove that there are no other persons in
the carriage except Al , A 2 , ••• , A m+1 • If B is a person other than the
m +1 persons and he has made friends with at least two of A 1 ,
A2, A m+1 • Suppose Band A 1 , A2 are friends. Then the m
••• ,
Exercise 2
n
2(n + 1) > 2,
=-:..'-'---'-----"'-'-- hence there is at least one vertex whose degree is no less
n
than 3.
3 We denote the faces of a polyhedron by vertices. We join two
vertices if and only if the faces which are represented by the vertices
have a common edge. We obtain a graph G. By assumption, the
number of the odd-degree vertices is odd. So such polyhedron does not
exist.
4 No. Use Theorem 2.
5 Construct a graph G as follows. We denote 123 persons by 123
vertices VI , V2' . . . , V123. If two persons have discussed the problem,
we join the corresponding vertices representing them. So the degree of
every vertex in the graph is no less than 5. If the graph contains no
vertex whose degree is more than 5, the degree of every vertex in the
graph is 5. It means that the number of odd vertices in the graph is
odd, which is possible. Then the graph contains at least one vertex
whose degree is more than 5.
6 Construct a graph G as follows. We denote n congressmen by
n vertices. If two persons do not know each other, we join them in
the graph G. For every vertex v" deVi) ~ 3. Now divide G into
two components G I and G 2 • For two vertices in one component, if
there is an edge joining them in the original graph, we keep the
edge. For two vertices in the different components, if there is an
edge joining them in the original graph, the edge will not exist. The
removed edges form a set E. In the two components, suppose there
is a vertex whose degree is more than 1. Without loss of generality,
assume that G I contains a vertex VI , de V I) ~ 2. Then we move the
vertex to G 2 • Then G I will lose two edges. Since de v I) ~ 3, G 2
increases by at most one edge and then E increases by at least one
edge. Repeat this process. The number of E is increasing, but the
total number of edges is finite. So at one point, in the two
components, there is no vertex whose degree is more than 1. We
complete the proof.
116 Graph Theory
there exist vertices VI and '02 which are not adjacent. Since d Cv I) +
d C'02) ~ 2n, by the Pigeonhole Principle, among the remaining 2n - 2
vertices there must be two vertices '03 ' '04 which are adjacent to both
VI' '02. Then the 4 vertices form one rectangle.
8 Construct a graph G as follows. We denote 9 persons by 9
vertices. The two vertices are adjacent if and only if they have shaken
their hands. Since d C'09) = 6, there exists v k oft V I , '02' '0 3 which is
adjacent to '09. Clearly d C'Ok) ~ 5. Among the other 5 vertices adjacent
to '09 there is a vertex Vh adjacent to 'Ok. COtherwise, d C'Ok) ~ 9- 5- 1 =
Two vertices Vi' Vj are adjacent if and only if they have not
cooperated, then we get graph G . The degree of every vertex in G is
8 . After playing three sets, we will remove 6 edges. So there exist at
least two vertices whose degrees are also 8. Let one of them be VI'
form K 4 •
10 Every two vertices are adjacent if the distance between them
Let A k + 1 be the vertex with the smallest degree in the vertex set. Its
degree is
Solutions 117
8
~ k-2+5 < k.
~ (k + 1) (k - 2) +4 - (k + 1) = ~ k (k - 3) +4
edges. By induction, the set of k vertices is stable. Also,
The number of the pairs of unit cubes which have no more than 2
common vertices is ; n 6 - ~ n 3 + 3n 2 at all.
12 We consider the connected part of the routes which contain
the capital. It is a connected graph. What we must prove is that this
connected graph contains city A. If not, one vertex (capital) of the
graph is adjacent to 21 edges, so every other vertex is all adjacent to 20
vertices. It means that the graph contains only one odd vertex, which
is impossible.
Exercise 3
no triangle and any vertex v" cannot be adjacent to v, v' at the same
time, G contains at most
e CG / )
1
+-
2 (n - n J - 1)(n J + 1)
= eCG) + (n i- n j ) - 1 > eCG) .
14 X 5
other 5 persons, so there are - 2- = 35 pairs. Now they play 3 sets
corresponding to three vertices can playa set with the new traveler.
8 SetG = (V, E). There ared(x){n -1 - d(x)} triple group
{x, y, z}. They do not form a triangle in G or G, and x E V is the
end of the only edge in G. Every triple group {x, y, z} which does
not form a triangle in G or G contains one or two edges of G. Suppose
that (x, y) is one edge of G and (x, z), (y, z) are two edges of G.
In the sum ~d(x){n -1 -d(x)}, the triple group {x, y, z} has
rEV
been counted twice: one is about x, the other is about y. If (x, y),
(y, z) are the edge of G, (x, z) is the edge of G, in above sum, the
tuple group {x, y, z} has also been counted twice: one involves x,
the other involves z. The sum of triangles in G and G is
1
= 24n(n -D(n - 5).
m < -'-(k'-'-----~1)'_(~n'_-----.:..:k'_'_)_+_'_____'_=k ( n )
k2 k - 1 .
m [ Cn - k)Ck - 1) + k] ~ ~ ~ aCB)
A E SB C A. IB I ~ k - l
= ~CaCB»2
B E {3
~ m((;{3aCB») 2
~
1
- --Ckm)2.
(k ~ 1)
So
Since
By Theorem 3, 2 - [182J
I E I? ( 18) 3 = 45. It means there are at least
45 pairs of cars which can communicate with each other. If the above
condition of the graph does not hold, then there does not exist two
vertices whose degrees are more than 5 and
Exercise 4
X + 3. 2: d (v,)
i= l
= 3 X3 +2 Xl +1Xx = 11 + x, so 11 + x = 2(x +
3), x = 5.
(2) Fig. 4 shows us two trees satisfying the requirement but they
are not isomorphic.
124 Graph Theory
Fig. 4
~ in i = 2e = 2n - 2 = 2~ n i - 2.
i= 1 i= 1
So
k
6 Among d l ' d 2' ... , d n' there must be at least two which is
equal to 1. (Otherwise, t
i =l
di ~ 2n - 1). We apply induction on the
d 1 + .. ·+dk-l + (d k - 1) = 2(k + 1) - 2 - 1 - 1 = 2k - 2.
By induction, there exists tree T' whose vertices are VI' ••. , V k ,
~d(Vi) = d 1 + ... +d k - 1 + (d k - 1) = 2k - 2.
i=1
T, then
k+1
~d(v;) = 2k -2 +1 + 1 = 2(k + 1) - 2.
i= l
T is what we need.
7 Construct a graph G, we use the ends of n line segments as the
vertices of G and the line segments as the edges. By the condition, G is
connected and contains no loop. So G is a tree where the length of its
longest chain is 2. So G contains only one vertex which is not a
pendant vertex. The vertex is the common vertex of n line segments.
8 Refer to Example 6 in this chapter.
9 Suppose the conclusion is not true, then there must exist a
counterexample. Consider the counterexample in which 1E 1+1 V 1is
the smallest. In this counterexample, 1E 1= 1V 1+ 4. (Otherwise, we
can remove more edges and still get a counterexample, where 1 E 1 +
1V 1is smaller. A contradiction!) Then 1E 1> 1V I. The graph must
contain a cycle. The length of the shortest cycle is at least 5.
(Otherwise, the length of the shortest cycle is no more than 4, then
we remove this cycle. We still have 1E 1;;: 1V I. There still exists a
cycle. The cycle and the above cycle contain a common edge. A
contradiction! )
Furthermore, the degree of every vertex is at least 3. Otherwise,
if the degree of a vertex is 2, remove this vertex and change the two
edges adjacent to this vertex to one edge. We still have 1E 1= 1V 1 +
4 and 1E 1+ 1V 1gets smaller. A contradiction! If the degree of one
vertex is 1, remove this vertex and its adjacent edges, we still have
1E 1= 1V 1+4 and 1E 1+1 V 1is smaller. A contradiction! If there
exists an isolated vertex, remove it and 1E I > 1V 1+ 4 and 1E 1+
1 V 1 is smaller. A contradiction! Take a cycle Co, the length of which
is at least 5. The cycle contains at least 5 vertices. For every vertex on
the Co, it is adjacent to at least one edge which is not on the cycle and
the adjacent vertices are distinct. (Otherwise, there exists a cycle
whose length is less than 5. ) Then it is easy to see 1 V I ;;: 2 X 5 = 10.
126 Graph Theory
= 102 - (k - 1) 2
A contradiction!
So the graph must contain a triangle, which means there exist
three persons who have called each other.
11 Suppose there exists such a graph that the degree of every
vertex is more than 2. But the length of any cycle of the graph is
divisible by 3. We consider the graph G which has this property and
the least number of vertices. Clearly , the graph contains the shortest
circle Z. The non-adjacent vertices on this cycle are not joined by an
edge. Since the degree of every vertex is more than 2, every vertex on
the cycle Z is adjacent to one vertex not on the cycle . Let Z pass the
vertex A 1 , A 2 ' ••. , A 3k .
Suppose that there exists a path 5 which joins the vertices A m and
A " and which does not include edges in Z. We consider the cycle Z 1
and Z z consisting of the two halves of 5 and Z. Since the length of
each of the two cycle is divisible by 3, it is not difficult to see the
length of path 5 is divisible by 3. Especially, for the given graph , we
can know that any vertex X which is not on the circle Z cannot have
edges incident to two distinct vertices of Z. It means that the edges
which are induced by the vertices on Z but not on the cycle should be
incident to distinct vertices, respectively.
Let us construct a graph G 1 • Collapse all vertices A 1 , A z , ... ,
A 3k on the cycle Z of G into one vertex A and keep all the vertices
which are not on the cycle and their incident edges. Join the A and the
vertices on the Z one by one. It is easy to know the degree of A is no
less than 3k. The number of vertices in G 1 is less than that of G and
the degree of every vertex is still more than 2. According to above
conclusion , the length of any cycle in G is divisible by 3. We arrive at
a contradiction . In view of the above proof, we can know G is the
128 Graph Theory
Exercise 5
still be extended. Go along the I-'- through vertices V2' V3' •. • , VS+l'
and then return to v 1 . This is a cycle whose length is more than ().
6 Take a point v;
(j = 1, 2, 3, 4) on every v;
contains a broken line f1 satisfying conditions (1) and (2), then G ' is
a chain (Q1 and Q2 are not on a face) or a cycle (Q1 and Q 2 are on a
face), i. e. the graph G ' is unicursal or it can be drawn in one strock.
But if the four vertices of G * are all odd, the graph G' needs two
strocks to draw.
7 Suppose that there are k lines and that one vertex V i
hence k is odd.
8 Use the conclusion of Exercise 7 A ___ 1!" __ <;:0" __l}1 __~! __ _
,, ,
,
and refer to Example 5 in Chapter 5. __ L
'- -- :B
I I I 3
,
I I I
,
I
Exercise 6
that cut the regular dodecahedron into two halves, and also cut each
regular triangle into two halves. The trace does not go through the
vertices of the regular dodecahedron.
Fig. 8
vertices . In graph G, for any two vertices v and VI, d (v) + d (VI) ~ 8.
According to Theorem 2, G contains a Hamiltonian chain and we can
arrange the children into one line by the order in the chain.
8 Draw a graph G as follows. We denote the materials by
vertices and every dish by an edge. In graph G, the degree of every
vertex is no less than 4. According to Theorem 4, G contains a
Hamiltonian cycle.
9 Suppose that set A contains n elements and we give every
element a number. Let A = {1, 2, 3, ... , n}. We use a sequence
whose length is n and consisting of 0 and 1 to denote a subset. The rule
is that if the element i of A is in this subset, the i-th position of this
sequence is 1, otherwise the i-th position is O. For example, the empty
set 0 = 0, 0 , 0, . . . , 0; {1} = 1, 0, 0, . . . , 0; {n} = 0, 0, ... , 1;
{2, 3} = 0, 1, 1, 0, ... , O. Then there are 2" subsets in A. We denote
the sequences corresponding to the 2" subsets by vertices and join two
vertices if and only if the sequences have only one different number at
the same position. Then we get a graph G. For example, when n = 1,
G is a line segment as Fig. 9 shows us: When n = 2, G is a square as
Fig. 10 shows us . Fig. 10 can be drawn using two Fig. 9. That is, add 0
before one pair of 0, 1 to get 00, 01 and add 1 before another pair of
0, 1 to get 10, 11. Then put one Fig. 9 on top of another one and join
them by two vertical edges to get a square. Copy two Fig. 10, put one
on top of another, add 0 before the number of every vertex of the top
square and add 1 before the number of every vertex of the bottom
square. Join the corresponding vertices of the two squares by four
vertical edges to get a graph G. When n = 3, G is a cube. If n = k ,
assume that the graph G has been drawn. Put G on top of another
copy. Then add 0 before the number of every vertex of the upper
graph and add 1 before the number of every vertex of below graph.
Join the corresponding vertices of the two graphs by vertical edges to
get a new graph G of n = k + 1. Fig. 11 is the case when n = 3 and Fig .
12 is the case of n = 4. We call the graph when n = k a cube graph with
dimensions n. It is easy to prove by induction: the cube graph with
132 Graph Theory
o0 > - - - - - - -.....01
Fig. 9
°D
10
Fig. 10
11
o1Of-~----"=-r
"
110 1111
Fig. 11 Fig. 12
Remove one edge, then the remaining vertex A cannot lie on cycle
which contradicts the condition. So n ~ 3. It is easy to prove that n *
4, 5, 6.
If n =7, remove the vertex whose degree is the largest (clearly,
the degree is at least 3) to get a cycle whose length is 6. Since the
vertices adjacent to this vertex may be non-adjacent on the cycle.
(Otherwise, there will be a cycle whose length is 7.) The removed
vertex is adjacent to at most three non-adjacent vertices on the cycle.
So the degree of this vertex is at most 3. 3 X 7 = 21 is odd. In fact, the
sum of all the degrees is even. A contradiction.
If n = 8, after removing the vertex whose degree is the largest, we
get a cycle whose length is 7. The removed vertex is adjacent to at
most three non-adjacent vertices on the cycle. So the degree of this
vertex is at most 3. The degree of every vertex is 3. As Fig. 13 ( 1 )
shows us, the degrees of A, C, F, 0 are 3. They cannot be incident
to any edge. Every vertex of B, D, E, G is incident to one edge,
respectively. If B is adjacent to G, D is adjacent to E (there are two
edges). It is impossible. If B is adjacent to D, E is adjacent to G and
the graph contains a cycle whose length is 8. A contradiction. If B is
adjacent to E, D is adjacent to G and the graph contains a cycle whose
length is also 8. A contradiction.
If n = 9, since 3 X 9 = 27 is not even, it is impossible that the
degree of every vertex is 3. There exists one vertex whose degree is at
least 4. We remove the vertex whose degree is the largest to get a cycle
whose length is 8. So the removed vertex is adjacent to at most four
non-adjacent vertices on the cycle. The largest degree is 4 and the
smallest is 3. As Fig. 13 (2) shows us, B is at least incident to one
edge. Clearly we cannot join more edges between B and A, C. If B is
adjacent to D, the graph contains a cycle whose length is 9. A
contradiction. Similarly, B cannot be adjacent to H. If B is adjacent
to F, the graph contains a cycle whose length is also 9. A
contradiction. So B can only be adjacent to E or G. By symmetry, let
B be adjacent to E. Similar to the above argument, we can know H is
134 Graph Theory
A A
A, A,
G{---,,+---4C
F C
E D E
(I) (2) (3)
Fig. 13
Exercise 7
2 = 11 - e +f ~ 3"e - e
2e
+ 3" = o.
Solutions 135
A contradiction.
2 Suppose the degree of every vertex is more than 4, then 2e
:8dC'O;)
[=1
~ 5'O, i.e. '0 < ;e. Sincee <3'0 -6, thene < ~e -6. It
edges on every face in average. Since there are at least three edges on
every face, there are 3 edges on every face.
4 Suppose G and G are both planar graphs. The number of
vertices in G and G is v and the number of edges is e and e',
and every face contains at least 3 edges. So the number of the faces of
(n)
the polyhedron is no more than 32 2 . By Euler s Formula, ,
1 10n
10n +x = "2 ~a; +2.
i= l
1 10n
Since x ~ :3 ~ a;, then
i=1
1 10n 1 10n
or
1011
If among lOn faces there are no n faces whose edge numbers are
equal,
lOn
= 75n +55
> 60n -12,
Exercise 8
Without loss of generality, let L AIA2A 3 be red. For the three edges
of L A4A SA6' there are two cases: (1) The three edges of L A4ASA6
are all red. We have completed the proof. (2) There is one blue edge
in LA4A SA6' say, A4A S. For AIA4' A 2A 4 , A 3A4' if there are two
red edges among them, there must exist a red triangle. If there are
two blue edges, say, AIA4 and A 2A 4 . Now if there is one blue edge
among AlAs and A 2A s ' there must exist a blue triangle. If AlAs and
A2AS are all red, LAIA2AS is a red triangle. We complete the proof.
2 If there are no three line segments such
~6_____~ 5
that they are monochromatic and contain no /,' :\
'1\
/:
"
I \ I I
A s are all blue. Similarly, the lines joining every two of the four
points A I ' A2 , A 3 , A4 are all red. Without loss of generality, let
AIA6 be blue, then A 3AS must be red. Whatever color A4As is, it
contradicts the hypothesis.
3 We color the shortest edge of every triangle red and others
blue. Since r2 = 6, there must be a monochromatic triangle which is
red and whose longest edge is the shortest edge of another triangle.
4 Take one vertex A of the two-color complete graph K 9 . If A
is incident to four blue edges AA I , AA 2 , AA 3 , AA 4 , the complete
subgraph K4 whose vertices are AI, A 2 , A 3 , A4 in K9 contains no blue
edge. If A is incident to six red edges AA I , AA 2 , ••• , AA 6 , the
complete subgraph whose vertices are A I , A2, • •• , A6 in K 9 contains
a monochromatic triangle LAiAjA k C1 ~ i, j, k ~ 6). Since K9
contains no blue triangle, LAiAjAk is a red triangle and the complete
subgraph K4 whose vertices are A, A i ' Aj , Ak is red. If every vertex
of K 9 is incident to 5 red edges, then the number of red edges in K 9 is
Solutions 139
5 X9
2 It is impossible .
5 By Theorem 3,
1
x = 2[(x + y) + (z + u) + (v +x) - (y + z) - (u + v) ]
a solid line by a red edge and a dotted line by a blue edge. There are 4
red triangles: ,6,AJA4A6' ,6,A2A4A6' ,6,A3A4A6' ,6,A7A4A6 and 4
blue triangles ,6,A JA2A 3' ,6,A2A 3A 7' ,6,AJA3A 7' ,6,AJA2A7. It is
easy to see that any two monochromatic triangles with the same color
contain a common edge. So n ~ 8.
Next, we prove when n = 8, the proposition is true. We prove by
contradiction.
First we prove a lemma: If the proposition is not true, there must
be a red triangle and a blue triangle which contain one common
vertex. First, K s which is colored in 2 colors must contain a
monochromatic triangle. Without loss of generality, let it be a blue
triangle ,6,A JA2A 3. Now among A3A4A sA6A7A S' there must exist a
monochromatic triangle which is not blue. If this red triangle contains
A 3 , the lemma is true. Otherwise, suppose that ,6,A4A sA 6 is a red
triangle. There are 9 edges joining ,6,AJA2A3 and ,6,A4A sA6 among
which there are at least five monochromatic edges. Without loss of
generality, let it be red. Then A J , Az , A3 are incident to at least 5 red
edges. Among them there must be one vertex which is incident to at
least two red edges. This triangle consisting of this vertex and
,6,AJA 2A 3 contains one common vertex. So the lemma must be true.
Next, we prove the proposition: Suppose the proposition is not true.
By the lemma, let ,6,AJA 2A3 be a blue triangle and ,6,A 3A4A s be a red
triangle. Consider the edges joining AJA4A6A7AS. Among them there
is no monochromatic triangle . So K 5 consists of a blue cycle of 5
vertices and a red cycle of 5 vertices (by the remark after Fig. 8.3). In
Fig. 16(2), represent red edges by solid lines and blue edges by dotted
lines. Without loss of generality, let AJA4A 6A7As be a blue cycle of 5
vertices and AJA7A4A SA 6 be a red cycle of 5 vertices. Next, we
discuss the color of A3A7 . If A 3A7 is blue, then A 3AS' A 3A6 must be
red. (Otherwise, ,6,A 3A7 As or ,6,A 3A 6A 7 is blue, which contradicts
,6,AJAzA3.) Now ,6,A3A6As is red, which contradicts ,6,A 3A4A S! If
A 3A 7 is red, we discuss the color of A 3A S.
142 Graph Theory
A,
(I) (2)
Fig. 16
Exercise 9
Fig. 17 Fig. 18
Solutions 143
Bigraph , 24 Graph , 1
Brouwer, 57 Generating tree, 45
Degree , 13 Incident, 3
Dirac , 70 Indegree, 102
Directed graph, 101 Infinite graph, 3
Direct search, 63 Isomorphic graph, 2
Endpoint, 101
Euler's Formula , 75 Konigsberg, 51
Euler tour , 53
Eulerian, 53 Leaf vertex, 41
Even , 13 Length , 40 , 103
Extremal graph, 24 Loop, 3