Graph Theory
Graph Theory
Chapter 1 Introduction 1
Chapter 4 Colourings 21
Examples Sheets
No specific prerequisites.
Introduction
Basic definitions. Trees and spanning trees. Bipartite graphs. Euler circuits. Elementary
properties of planar graphs. Statement of Kuratowski’s theorem. [3]
Eigenvalue methods
The adjacency matrix and the Laplacian. Strongly regular graphs. [2]
Graph colouring
Vertex and edge colourings; simple bounds. The chromatic polynomial. The theorems of
Brooks and Vizing. Equivalent forms of the four colour theorem; the five colour theorem.
Heawood’s theorem for surfaces; the torus and the Klein bottle. [5]
Ramsey theory
Ramsey’s theorem (finite and infinite forms). Upper bounds for Ramsey numbers. [3]
Probabilistic methods
Basic notions; lower bounds for Ramsey numbers. The model G(n, p); graphs of large girth
and large chromatic number. The clique number. [3]
Appropriate books
A graph is a pair (V, E), where V is a set and E is a subset of V (2) = {{x, y} : x, y ∈ V, x 6= y},
the set of unordered pairs from V .
x1s sx2
@ s x5
E.g., @ has V = {x1 , x2 , x3 , x4 , x5 }, E = {x1 x2 , x1 x4 , x2 x3 , x3 x4 , x4 x5 }.
s @s
x3 x4
Notes. 1. No loops: s
2. No multiple edges: s s
3. No directed edges: s > s
We call V = V (G) the vertex set of G, and E = E(G) the edge set of G.
Examples.
So |G| = n + 1, e(G) = n.
1
Graphs G = (V, E) and H = (V ′ , E ′ ) are isomorphic if there is a bijection f : V → V ′ such
that xy ∈ E ⇐⇒ f (x)f (y) ∈ E ′ .
s s
s BB s
#c
s
# cs
E.g., B and ZZ B are isomorphic.
Bs s s ZBs
E.g., Cn is a subgraph of Kn .
For xy ∈
/ E, write G + xy for the graph (V, E ∪ {xy}).
E.g., the above example has degree sequence: 2, 2, 2, 3, 1. So δ(G) = 1 and ∆(G) = 3.
– but it contains a path from x1 to xl . (E.g., choose minimal 1 6 i 6 l for which there is
some k 6 j 6 l with xi = xj , and then x1 , . . ., xi , xj+1 , . . ., xl is a path.)
2
The equivalence classes of ∼ are the components of G.
Trees
A graph is acyclic if it has no cycle.
(a) G is a tree.
Proof. (a) ⇒ (b). If G − xy is connected, then it has an x-y path P , but then P yx is a
cycle in G. /\/\
Proof. Let P = x1 . . .xk be a longest path in T (which exists as we have a finite graph).
Then Γ(xk ) ⊂ P (by maximality of P ), and Γ(xk ) ∩ P = {xk−1 }, since T is acyclic.
So d(xk ) = 1.
Remark. The proof actually shows there are > 2 leaves, as the same proof works for x1 .
Alternatively, if T has no leaf, “go for a walk”. Choose some x1 , x2 ∈ E and then choose
x3 , x4 , x5 , . . . as follows. Having chosen x1 , . . ., xk , choose xk+1 ∈ Γ(xk ) \ {xk−1 }.
This must repeat (as T finite), giving a cycle. /\/\ .
3
Proposition 3. Let T be a tree on n vertices (n > 1). Then e(T ) = n − 1.
For G a graph, W ⊂ V , write G[W ] for the subgraph spanned by W . That is, G[W ] has
vertex set W , edge set E ∩ W (2) . For x ∈ V , write G − x for G[V \ {x}].
Given T on n vertices (n > 2), choose a leaf x. Then G−x is a tree, with |G−x| = n−1,
so e(G − x) = n − 2, by induction. Thus e(G) = e(G − x) + 1 = n − 1.
Clearly every connected G does have a spanning tree: just remove edges until we get a
minimal connected graph.
For a non-inductive proof of Proposition 3 we’ll show that any connected G has a spanning
tree T on n − 1 edges (then done as if G is a tree, then the only spanning tree of G is G
itself, e.g., by minimal connectedness).
For x, y ∈ G, the distance from x to y, d(x, y) is the shortest length of any x-y path.
Fix x0 ∈ G, then for each x ∈ V \ {x0 } choose a shortest x-x0 path, say xx′ . . .x0 .
(So d(x′ , x0 ) = d(x, x0 ) − 1.)
Clearly, if G has a bridge then it has a cutvertex (for |G| > 2).
s s
s
Q
s Qs
Q
The converse is false, e.g.,
4
Bipartite Graphs
A graph G is bipartite on vertex classes V1 and V2 if V1 , V2 partition V (i.e., V1 ∪ V2 = V ,
V1 ∩ V2 = ∅) and E(G) ⊂ {xy : x ∈ V1 , y ∈ V2 } (i.e., no edges inside V1 , V2 ).
s s
V1 s s V
s s
E.g., a path: 2
The complete bipartite graph Kn,m has |V1 | = n, |V2 | = m, and E = {xy : x ∈ V1 , y ∈ V2 }.
So e(Kn,m ) = nm.
(s
s h
( ( (
(
hs
h
H h(h
s h
E.g., so K2,3 is:
H(
( (
( H
Hs
h
h H
h
h
A circuit in a graph G is a closed walk (i.e., a walk of the form x1 . . .xk where x1 = xk ).
Note that if G has an odd circuit, then it has an odd cycle. Indeed, if x1 , . . .xk x1 is an odd
circuit and xi = xj (some 1 6 i 6 j 6 k), then one of xi xi+1 . . .xj and xj xj+1 . . .xk x1 . . .xi is
an odd circuit. Then done by induction on k.
Planar Graphs
A graph G is planar if it can be drawn in the plane without crossing edges. A plane graph
is such a drawing.
s s s s
@ @
E.g., @ is not a plane graph, but @ is. So K4 is planar.
s @s s @s
Examples.
s s s
s @s @s
@ @
1. Any path is planar:
s
s H Hs
2. Any cycle is planar: s s
H Hs
s s
s
3. The empty graph is planar: s s
4. K4 is planar (as shown above).
5
Which graphs are planar? How do we check if a given graph is not planar?
Given a graph G, R2 − G (i.e., the plane with G removed) splits up into connected regions
called faces. The boundary of a face consists of the vertices and edges that touch it.
F4
s s F2
?Z
E.g.,
@
F5 - @s Zs F1
Here, the boundaries of F2 , F3 , F4 , F5 , F6 consist of
s 6 s
@@
I
@
3-cycles, and of F1 consists of a 5-cycle.
F3
F6
s s
@s s
Warning. 1. The boundary of a face need not be a cycle: s
s F s
s s
s s
2. The boundary of a face need not even be connected: s
s F s
s s
@
s @s
3. The two faces on either side of an edge may be the same:
F
Formal bit:
is officially Q
Q
For a graph G with vertex set {v1 , . . ., vn }, a drawing of G consists of distinct points
x1 , . . ., xn ∈ R2 together with, for each vi vj ∈ E, a polygonal arc pij from xi to xj such
that pij ∩ pkl = ∅ if i, j, k, l distinct, and pij ∩ pjk = {xj }.
We’ll assume various facts about R2 , like “a cycle has two faces”, or “a boundary of a face
consists of vertices and (whole) edges”. (Proved by induction on the total number of straight
line segments in the drawing.)
Remarks. 1. Every tree is planar, with exactly one face. (Proof by induction, via removing
a leaf.)
6
Is the number of faces fixed? Yes:
Notes.
1. This
is2a linear bound on m – whereas in general a graph could have anything up
n n −n
to = edges.
2 2
s `
`
P
H
@HPP```
s @sH
PsP
Ps . . . (line of n − 2 vertices)
``
2. This bound is best possible, e.g.: H
s
Proof of 6. Wlog, G connected. (If not, add edges to make it so.) Thus n − m + f = 2.
If we sum, for each face f , the number of edges in the boundary of f , we obtain > 3f ,
because each face has > 3 edges in its boundary (for n > 3 – theorem trivial for n 6 2).
But we also obtain 6 2m (since each edge counted 6 2).
2m 2m m
Thus 3f 6 2m, i.e. f 6 . So n − m + > 2, so 6 n − 2.
3 3 3
Corollary 7. K5 is not planar.
7
Proposition 8. K3,3 is not planar.
Proof of 8. K3,3 is triangle-free, so if drawn in the plane, we must have > 4 edges on the
boundary of each face. So 4f 6 2m, i.e. f 6 m/2.
m
So n − m + > 2, i.e. m 6 2(n − 2). But n = 6, m = 9. /\/\
2
Remark. The girth of a graph is the length of a shortest cycle (with girth ∞ if the graph
has no cycle).
g
The proof above yields: if G is planar, girth > g, then m 6 max (n − 2), n − 1 .
g−2
↑
silly bit
Kuratowski’s Theorem says that these are the only obstruction to being planar:
8
Chapter 2 : Connectivity and Matchings
Let G be a bipartite graph, with vertex classes X and Y . A matching from X to Y is a set
{xx′ : x ∈ X} of edges of G, such that x 7→ x′ is injective. In other words, it consists of |X|
independent edges (i.e., no vertices in common).
We have G, vertex classes X, Y , with |X| > 1, such that |Γ(A)| > |A| for all A ⊂ X.
Proof of claim. We need |ΓG′ (A)| > |A| for all A ⊂ X \ {x} (A 6= ∅).
But |ΓG (A)| > |A| + 1, so |ΓG′ (A)| > |A| + 1 − 1.
If no, then there is some A ⊂ X with |Γ(A)| = |A|. Let G′ = G[A ∪ Γ(A)] and
G′′ = G[(X \ A) ∪ (Y \ Γ(A))].
Proof of claim. For B ⊂ A, have |ΓG′ (B)| > |B|, because ΓG′ (B) = ΓG (B).
Proof of claim. For B ⊂ X \ A, consider A ∪ B. Have |ΓG (A ∪ B)| > |A| + |B|,
so |ΓG (A ∪ B) \ ΓG (A)| > |B|, so |ΓG′′ (B)| > |B|.
9
Proof (2). Form a directed network as follows: add a source s joined to each x ∈ X by an
edge of capacity 1, and a sink t joined to each y ∈ Y by an edge of capacity 1, and also
direct each xy ∈ E(G) from x to y, capacity ∞ (i.e., some huge number).
∞ s 1
1s - X zX
s
s
X
:
- s -s X
- Xs
X
zXXs
: : t
s
Then an integer-valued flow of size |X| is precisely a matching from X to Y . So, by inte-
grality theorem of max-flow min-cut, we just need to show that every cut has size > |X|.
So given a cut {s} ∪ A ∪ B (A ⊂ X, B ⊂ Y ), wlog Γ(A) ⊂ B (else capacity ∞),
so capacity = |X| − |A| + |B| > |X| as |B| > |A|, since B ⊃ Γ(A).
Corollary 2 (Defect Hall). Let G be a bipartite graph, vertex classes X, Y . Then G has
a matching of deficiency d from X to Y ⇐⇒ |Γ(A)| > |A| − d for all A ⊂ X.
(⇐) Form G′ by adding d new points to Y , each joined to all of X. Then |ΓG′ (A)| > |A|
for all A ⊂ X, so by Hall there is a matching in G′ , giving a matching of deficiency d
in G.
(In terms of boys and girls: add d imaginary girls to Y , known to all boys. Hall gives a
matching, and at most d boys are paired with imaginary girls, so at least |X| − d are paired
with real girls.)
E.g., {1, 2, 3}, {3, 4}, {4, 5}, {5} has a transversal 1, 3, 4, 5.
(⇐) Wlog all Si are finite. Form a bipartite graph as follows: X = {1, . . ., n}, Y =
S1 ∪ . . . ∪ Sn , with i ∈ X joined to j ∈ Y if j ∈S
Si . Thus a transversal is precisely a
matching from X to Y . But for A ⊂ X, have i∈A Si > |A|, i.e. |Γ(A)| > |A|, so
done by Hall.
10
Remarks. 1. Actually, corollary 3 is equivalent to Hall, since a matching in a bipartite
graph G, vertex classes {x1 , . . ., xn } and Y is exactly a transversal for Γ(x1 ), . . ., Γ(xn ).
2.S There is also a defect form: there exists a transversal for all but d of S1 , . . ., Sn ⇐⇒
i∈A Si > |A| − d for all A ⊂ {1, . . ., n}.
Can we choose representatives of the left cosets that are also representatives of the right cosets
– that is, g1 , . . ., gk such that g1 H, . . ., gk H are the left cosets and Hg1 , . . ., Hgk are the right
cosets? In other words, we seek a permutation π of {1, . . ., k} such that Li ∩ Rπ(i) 6= ∅ ∀ i.
(“Pair up each left coset with a right coset that it meets.”)
Connectivity
A cycle G is connected, and G − x is connected for all x ∈ G (although we can remove two
points to disconnect it).
s s
s s
s s — G − x − y still connected ∀ x, y ∈ G.
s s
For G connected, |G| > 1, the connectivity of G, κ(G), is the smallest |S| such that
S ⊂ V (G) and G − S is disconnected, or a single point (because of complete graphs).
Thus G is k-connected ⇐⇒ no set of size < k disconnects G (or makes it a single point).
11
Examples.
4. Kn is (n − 1)-connected.
s s
s
H s x
H
sH s
Warning. We can have κ(G − x) > κ(G), e.g.
Hs
Remark. Always have κ(G) 6 δ(G) = minimum degree in G: choose x with d(x) = δ(x)
and remove S = Γ(x). Then |S| = δ(x) and G is disconnected (or a single point).
It would be nice if: G k-connected =⇒ ∀ a, b there are k independent (i.e., disjoint vertices
apart from a, b) a-b paths.
Remarks. 1. Converse trivial: any separator contains > 1 point from each of the k paths.
12
Proof (1). We may assume that k > 2, as the theorem is trivial for k = 1.
Let k be the minimum size of any a-b separator. We need k independent paths from
a to b. If not possible, take a minimal counterexample (say minimal k, then minimal
e(G) for k). Let S be an a-b separator, |S| = k.
Now suppose that every a-b separator S of size k has S ⊂ Γ(a) or S ⊂ Γ(b).
We cannot have any x ∈ Γ(a)∩Γ(b), because if so then consider G−x. All a-b separators
in G − x have size > k − 1 (as with x, they separate a from b in G), so by minimality of
k there exist k − 1 independent paths in G − x. Now add axb, and obtain k independent
paths in G. /\/\
Choose a shortest a-b path, say ax1 . . .xr b (r > 2) and consider G − x1 x2 . In G − x1 x2
have a separator S of size k − 1 (by minimality), so S ∪{x1 } and S ∪{x2 } are separators
in G. Since x1 ∈ / Γ(b), we must have S ∪ {x1 } ⊂ Γ(a). And since x2 ∈ / Γ(a), we must
have S ∪ {x2 } ⊂ Γ(b). So S ⊂ Γ(a) ∩ Γ(b), contradicting Γ(a) ∩ Γ(b) = ∅. (If S = ∅
then k = 1.) /\/\
Proof (2). We’ll apply vertex capacity form of max-flow min-cut. Form a directed network
by replacing each edge xy by directed edges xy ~ and yx
~ and give each capacity 1. Then
an integer-valued flow of size k is exactly a family of k independent a-b paths. So, by
integrality form of max-flow min-cut, just need that every vertex cut set has size > k,
i.e. every a-b separator has size > k.
Corollary 5. Let G be a graph, |G| > 1. Then G is k-connected ⇐⇒ for all a, b ∈ G, there
exist k independent a-b paths.
Proof. (⇐) Certainly G is connected, with |G| > k. Also, no set of size < k can disconnect
a from b (else choose a, b in different components).
13
For G connected, |G| > 1, the edge connectivity λ(G) of G is the smallest size of a set
W ⊂ E(G) such that G − W is disconnected.
s s s
sH Hs
s @ s @s has λ(G) = 2, κ(G) = 1.
@
E.g., s s has λ(G) = 2, and @
HHs @ @s @s
The line graph L(G) of a graph G has vertex set E(G), with e joined to f if they meet
(share a vertex) in G.
Proof of 6. Form G′ from L(G) by adding new vertices a′ , b′ to L(G) with edges a′ e for
each e ∈ E(G) = V (L(G)) with a ∈ e, and edges b′ e for each e ∈ E(G) with b ∈ e.
s s s
s es s s s
E.g., if G is a s @s @sb
@ e @
g g
s s
then L(G) is
@@s f f
s s s s s
sH
A
a′ Hs s Asb′
and G′ is
Corollary 7. Let G be a graph, |G| > 1. Then G is k-edge-connected ⇐⇒ for all distinct
a, b ∈ G there exist k edge-disjoint a-b paths.
Remark. Or prove Theorem 6 and Corollary 7 by max-flow min-cut (usual edge capacity
version).
14
Chapter 3 : Extremal Problems
An Euler circuit, or Eulerian circuit, in a graph G is a circuit passing through each edge
exactly once. I.e., x1 , . . ., xk (xk = x1 ) such that if xy ∈ E then there is a unique 1 6 i 6 k−1
with xy = xi xi+1 .
Proposition 1. Let G be a connected graph. Then G is Eulerian ⇐⇒ d(x) is even for all
x ∈ G.
Remark. Hence G is Eulerian ⇐⇒ all degrees are even and at most one component contains
an edge.
Proof of 1. (⇒) If an Eulerian circuit passes through x k times, then d(x) = 2k.
Given G connected, with e(G) > 0 and d(x) even for all x ∈ G, suppose that G is not
Eulerian and let C be a largest circuit in G with no edges repeated. Note that e(C) > 0
as G has a cycle (since d(x) > 2 for all x ∈ G, so G is not a tree).
Let H be a component of G − E(C) with e(H) > 0. Then H is connected and dH (x)
is even for all x ∈ H (as dG (x) and dC (x) are even for all x). So, by the induction
hypothesis, H has an Euler circuit C ′ . But now C and C ′ are edge disjoint circuits that
share a vertex (we do have V (H) ∩ V (C) 6= ∅ as G is connected), so we can combine
them to form a circuit longer than C. /\/\
Let G be a graph of order n. Say G is Hamiltonian if it has a cycle of length n (i.e., a cycle
through all vertices). Such a cycle is called a Hamilton cycle.
There is no nice “⇔” condition known for Hamiltonicity. We can’t have a parity type of
condition, as G Hamiltonian ⇒ G + xy Hamiltonian.
s s
E.g., s AsAAs is Hamiltonian (use the perimeter).
AAsAAs
This is silly because any x with d(x) = 1 stops G from being Hamiltonian, so take G to
be the complement (i.e., G = (V, V (2) \ E), for G = (V, E)) of {x1 x2 , x1 x3 , . . ., x1 xn−1 }.
Then e(G) = n2 − (n − 2), but G is not Hamiltonian.
15
Better question. What δ(G) ensures that G is Hamiltonian?
n
E.g., n even, take two disjoint copies of Kn/2 . Then δ(G) = − 1, but G is not Hamiltonian.
2
n−1
E.g., n odd, take two copies of K(n+1)/2 , meeting at a single point. Then δ(G) = , but
2
there is no Hamilton cycle.
n
Theorem 2. Let G be a graph of order n (n > 3) Then δ(G) > =⇒ G is Hamiltonian.
2
Proof. G is connected, since if x, y are non-adjacent vertices then Γ(x), Γ(y) ⊂ V \ {x, y},
so Γ(x) ∩ Γ(y) 6= ∅, as |Γ(x)|, |Γ(y)| > n/2 but |V \ {x, y}| < n.
Let x1 x2 . . .xl be a longest path in G. (Note l > 3 since G is connected and n > 3.)
Wlog G has no cycle of length l, because: if l = n, we’re done; and if l < n then as G
is connected, there exists x ∈
/ cycle adjacent to some y ∈ cycle, which yields a path on
l + 1 points.
Thus xl x1 ∈
/ E. Moreover we cannot have 2 6 i 6 l with x1 xi , xi−1 xl ∈ E, or else we
xi . . . xl
s- s s s
have a cycle:
x1 . . . xi−1 -
Now, Γ(x1 ) ⊂ {x2 , . . ., xl } and Γ(xl ) ⊂ {x1 , . . ., xl−1 } (by maximality of the path),
and, by above, Γ(x1 ) is disjoint from Γ+ (xl ) = {xi : 2 6 i 6 l : xi−1 ∈ Γ(xl )}. But
|Γ(x1 )|, |Γ+ (xl )| > n/2 and Γ(x1 ), Γ+ (xl ) ⊂ {x2 , . . ., xl }. /\/\
Remark. We didn’t use the full strength of δ(G) > n/2. We used only that x, y non-adjacent
⇒ d(x) + d(y) > n.
Similarly,
k
Proposition 3. Let G be a graph of order n (n > 3). Then G connected and δ(G) > ,
2
where k < n =⇒ G has a path of length k.
Proof of 3. Let x1 . . .xl be a longest path in G. (l > 3 since G is connected and n > 3.)
Suppose that l < k. Then, as in the proof of Theorem 2: wlog G has no l-cycle, and
thus Γ(x1 ) and Γ+ (xl ) are disjoint subsets of {x2 , . . ., xl }, each of size > k/2. /\/\
n(k − 1)
Theorem 4. Let G be a graph of order n with e(G) > . Then G contains a path
2
of length k.
n(k − 1)
Remarks. 1. Equivalently, G 6⊃ Pk ⇒ e(G) 6 .
2
16
Proof of 4. Use induction on n. Done if n 6 2.
Remark. Both Theorem 2 and Theorem 4 are extremal results. They answer “how large
can a graph be with a certain property?” Often this property is non-containment of a given
graph. E.g., how big can e(G) be if G is triangle-free?
Turán’s Theorem
Equivalently, how many edges can a graph on n vertices have if it does not have Kr as a
subgraph?
The Turán graph Tk (n) is the complete k-partite graph on n vertices, with vertex classes
V1 , . . ., Vk , where |V1 |, . . ., |Vk | are as equal as posisble.
s`` s `s` s
s @ JJ ``` D s s @ JJ `` `D s
Q
DD Q
@ @ D
Q Q @ #D
E.g. T4 (8): @Q J@ D and T4 (7):
C@
C @Q J@##D
D @ Q
J@ Q
Q D C @ #J @
Q D
s`
D ` @J @ Q Ds CsX
#X@J @
Q Ds
Ds ``@Js
` XX
@Js
Certainly Tr−1 (n) 6⊃ Kr (as Tr−1 (n) is (r − 1)-partite), and Tr−1 (n) is maximal Kr -free: if
we add any edge then we make a Kr .
If k divides n then all classes have size n/k, so d(x) = n − n/k = n(1 − 1/k) for all x. In
general, the classes have size ⌈n/k⌉ or ⌊n/k⌋, so all degrees are n − ⌈n/k⌉ or n − ⌊n/k⌋.
17
Notes. 1. To obtain Tk (n − 1) from Tk (n), remove a point from a largest class, i.e. a point
of minimum degree.
Theorem 5 (Turán’s Theorem). Let G be a graph on n vertices. Then e(G) > e(Tr−1 (n))
=⇒ G ⊃ Kr .
3. It looks like the proof has to be fiddly, as e(Tr−1 (n)) is a complicated function of n
and r.
Proof. Key idea: we’ll strengthen the theorem to make it easier to prove. We’ll prove:
|G| = n, e(G) = e(Tr−1 (n)), G 6⊃ Kr =⇒ G ∼ = Tr−1 (n). (This certainly implies
Theorem 5, by maximality of Tr−1 (n).)
But the dTr−1 (n) (y) are as equal as possible, so δ(G) 6 δ(Tr−1 (n)), as claimed.
Let G′ have vertex classes V1 , . . ., Vr−1 . We cannot have x joined to a point in every Vi ,
else G ⊃ KSr , so Γ(x) ∩ Vi = ∅ for some i. But d(x) = n − 1 − min |Vi | (by note 2 above).
So Γ(x) = j6=i Vj , for some i with |Vi | minimal. Thus G is complete (r − 1)-partite,
with vertex classes Vj (j 6= i) and Vi ∪ {x}. Thus G ∼ = Tr−1 (n).
Theorem 6. Let t > 2. Then Z(n, t) 6 n2−1/t t1/t + nt. In particular, Z(n, t) 6 2n2−1/t for
n sufficiently large (i.e., for all n > n0 (t)).
18
Proof. Let G be bipartite, vertex classes X, Y , where |X| = |Y | = n, with G 6⊃ Kt,t . Let
degrees in X be d1 , . . ., dn . We’ll see that the average degree d is 6 n1−1/t t1/t + t.
X di X di
n
But this number also equals , so 6 (t − 1) .
t t t
x x(x − 1). . .(x − t + 1)
Now, the function = is a convex function of x for x > t − 1.
t t!
x (y + t − 1). . .y
(E.g., put y = x − t + 1, then = , which is a non-negative linear
t t!
combination of powers of y.)
X di
d
d
n n(d − t + 1)t (t − 1)nt
Thus >n , so n 6 (t − 1) , and so 6 .
t t t t t! t!
Is this the right value? Does Z(n, t) actually grow as n2−1/t (t fixed)?
t = 4 is unknown!
** Non-examinable section **
Ex(n, Kr ) 1
Or, more precisely, Turán says: n
→1− as r → ∞.
2
r−1
e(G)
Note. n
is called the density of G.
2
19
n(k − 1)
And Theorem 4 says: Ex(x, Pk ) ∼ .
2
e(G) 1 e(G) 1
Turán says: n
>1− =⇒ G ⊃ Kr . But what if n
>1− + 0.001?
2
r−1 2
r−1
e(G) 1
Remarkably, n
>1− + 0.001 =⇒ G ⊃ Kr (t) for any t (for n large enough).
2
r−1
e(G) 1
Erdős-Stone Theorem. For all r, ǫ, t, n
> 1− +ǫ =⇒ G ⊃ Kr (t) for n > n0 (r, ǫ, t).
2
r − 1
1
Sketch proof. We have G, average degree > 1 − + ǫ n.
r−1
1
1. Get H ⊂ G (H large) with δ(H) > 1− + ǫ n′ (n′ = |H|).
r−1
2. By induction on r, H ⊃ Kr−1 (t′ ), some t′ large. Write K for the Kr−1 (t′ ).
3. Have lots of points in H − K, each joined to > t of each class of K (by δ(H)).
4. Get > t of these points joined to the same t-set in each class of K (by pigeonhole
principle).
For given H, choose least r with H r-partite. (E.g., H = Petersen graph: not bipartite as it
has a 5-cycle, but it is 3-partite.) So then H ⊂ Kr (t), some t.
Ex(n, H) 1
Then Tr−1 (n) 6⊃ H (as Tr−1 (n) is (r − 1)-partite), so n
>1− .
2
r−1
Ex(n, H) 1
But Erdős-Stone says n
>1− + ǫ =⇒ G ⊃ any Kr (t), so G ⊃ H.
2
r−1
Ex(n, H) 1
Conclusion: n
→1− (where r is least such that H r-partite).
2
r−1
Ex(n, H)
Remark. If H bipartite, this says n
→ 0. But what is the growth speed of Ex(n, H)?
2
20
Chapter 4 : Colourings
An r-colouring of a graph G is a function c : V (G) → [r] = {1, . . ., r}, such that c(x) 6= c(y)
whenever x, y are adjacent.
The chromatic number χ(G) of G is the smallest r such that G has an r-colouring.
Examples.
s2 s2 s2
s1 @@s 1 @@s 1
1. χ(Pn ) = 2 :
s1 s3
2 if n even 2s H Hs2 s
# #ccs1
1 sH s1
2. χ(Cn ) = : 2
B
Hs 1 Bs s2
3 if n odd
2
3. χ(Kn ) = n (as all vertices need a different colour).
4. χ(En ) = 1.
21
Warning. 1. Greedy algorithm may use more than χ(G) colours.
s x3 s x2
E.g., in sx @ @s x greedy gives 3 colours.
1 4
Claim. δ(G) 6 5.
P
Proof of claim. We have e(G) 6 3n − 6 (as G is planar), so x∈G d(x) 6 6n − 12, so
some x has d(x) 6 5.
Choose x such that d(x) 6 5. Then G−x is planar, so by induction it has a 6-colouring.
Then Γ(x) receives 6 5 colours, so we can colour x with the remaining colour.
Given planar G, |G| > 5, we have δ(G) 6 5 (as before), so choose x ∈ G with d(x) 6 5.
By the induction hypothesis, we have a 5-colouring of G − x, so done unless d(x) = 5
and all 5 colours appear in Γ(x).
If no, let H be the 1-3-component of x1 (i.e., all vertices we can reach from x1 by
a 1-3-path). So x3 ∈
/ H. Swap colours 1 and 3 on H. This is still a colouring of
G − x, but we now have x1 of colour 3, so we can use colour 1 for x.
22
Suppose we wanted to colour the faces of a plane graph such that distinct faces sharing an
edge get different colours – i.e., “colouring a plane map”.
Given a plane graph G, form the dual graph G′ by taking a point for each face, and joining
two points if they share an edge. So G′ planar and a colouring G′ corresponds exactly to
colouring the faces of G. Thus Theorem 3 tells us that every planar map is 5-colourable.
** Non-examinable section **
Given planar G, |G| > 4, we have δ(G) 6 5 (as usual), so choose x ∈ G with d(x) 6 5.
We can 4-colour G−x by induction, so done unless either d(x) = 4 or 5, with all colours
appearing in Γ(x).
First picture. If there is no 2-4-path from x2 to x4 then done (swap colours 2 and 4 on
the 2-4-component of x2 ).
The theorem was eventually proved in 1976 by Appel and Haken. In the proof of Theorem
3, we used the fact that “a vertex of degree 1, 2, 3, 4 or 5” forms an unavoidable (every
planar graph contains > one) set of reducible (cannot be present in a minimal counterex-
ample) configurations. Appel and Haken found an unavoidable set of about 1900 reducible
configurations for the Four Colour Theorem (using computers a lot).
23
We have χ(G) 6 ∆ + 1 for all graphs G, and we can have equality – for example Kn and
Codd . We will show that in fact χ(G) 6 ∆ for all connected G except Kn and Codd .
Remark. If G is connected and not regular, we can certainly colour with ∆ colours.
Indeed, choose xn with d(xn ) < ∆. Then choose xn−1 adjacent to xn (as G connected).
Then choose xn−2 ∈ G − {xn , xn−1 } adjacent to {xn , xn−1 } (as G connected). And so
on. Then run the greedy algorithm on the order x1 , . . ., xn .
Each xi has a forward edge, i.e. xi xj ∈ E, some j > i (for all i 6= n), so uses 6 ∆
colours. (The presence of a forward edge means that when choosing the colour of a
vertex, we have already chosen colours for at most ∆ − 1 of its neighbours.)
Proof. Wlog G is regular (by the remark above), and ∆ > 3 (as ∆ = 1 is trivial, and ∆ = 2
⇒ G is a cycle).
Case 1. G is 3-connected.
We want an ordering such that every vertex has a forward edge, and xn has two
neighbours of the same colour.
So suppose xy ∈/ E. If each Gi has at least one of dGi (x), dGi (y) being 6 ∆ − 2,
we can recolour to ensure x and y have different colours in Gi .
So done, unless some Gi has dGi (x) = dGi (y) = ∆ − 1, say i = 1. Then we must
have k = 2, with dG2 (x) = dG2 (y) = 1 (as d(x), d(y) 6 ∆). Let ΓG2 (x) = {u},
ΓG2 (y) = {v}. Then {x, v} is a separator, not of this form.
24
The Chromatic Polynomial
We are carrying more information on G than the number χ(G). For any graph G and
t = 1, 2, 3, . . ., let PG (t) be the number of t-colourings of G. (So χ(G) equals the least t such
that PG (t) > 0.)
Examples.
PEn (t) = tn .
st−1 s . . . s
PPn (t) = t(t − 1)n : st @@st−1
@ @s . . .
And in general PTn (t) = t(t − 1)n−1 for any tree T on n vertices (by induction)
st − 1
PCn (t) = ..? t s
# #ccst − 1
B
? Bs s. . .
For a graph G and e = xy ∈ E(G), the contraction of G by e, written G/e, is formed from
G by replacing x and y by a new vertex e, joined to all points that were joined to x or y.
s s
E.g., s
x e y
@@ s - se
s s s @@s
G G/e
Lemma 5. Let G be a graph, and e ∈ E. Then PG = PG−e − PG/e .
Proof. The t-colourings of G − e in which x and y get different colours correspond exactly
with the t-colourings of G.
And the t-colourings of G − e in which x and y get the same colour correspond exactly
with the t-colourings of G/e.
Note. We could not use Lemma 5 (and a base case of G = En ) to define PG , as it’s not
clear that it gives a unique function PG for all G.
Given G, e(G) > 0, choose e ∈ E. Then PG−e and PG/e are polynomials, by induction.
So PG = PG−e − PG/e is also a polynomial.
25
For a tree T , we had PT (t) = tn − (n − 1)tn−1 + . . .
Proposition 7. Let G be a graph on n vertices with m edges. Then the leading terms of
PG (t) are tn − mtn−1 + . . .
Remarks. 1. We can get other information about G from its chromatic polynomial.
n−2 For
example, it turns out that PG (t) = tn − mtn−1 + m
2 − #triangles of G t + . . ..
2. Since PG is a polynomial, we can talk about PG (t) for any real or complex t.
3. Four Colour Theorem says: planar G has PG (4) > 0. I.e., PG has no root at 4. No
√ that PG (4) 6= 0 for all planar G. It is known
polynomial-style direct proof is known
that PG (ϕ + 2) 6= 0 where ϕ = (1 + 5)/2.
Edge Colouring
A k-edge-colouring of G is a map c : E(G) → {1, . . ., n} such that c(e) 6= c(f ) whenever
e, f share a vertex.
But also, χ′ (G) can be far from χ(G). E.g., K1,n (a star) has χ(G) = 2, χ′ (G) = n.
Clearly χ′ (G) > ∆(G) for all G. We can have χ′ (G) > ∆(G), for example Codd .
Proof. Let ∆ = ∆(G). We must show that χ′ (G) 6 ∆ + 1, i.e. that G can be (∆ + 1)-edge-
coloured. Use induction on e(G). Done if e(G) = 0.
This must stop, as G is finite. And it must stop because either ck is not used at x, or
ck = cj for some j < k.
26
If ck is not used at x, then recolour by giving xyi colour ci for all 1 6 i 6 k. This is a
(∆ + 1)-edge-colouring of G.
If ck = cj for some j < k, wlog j = 1, because we can recolour xyi with colour ci for
1 6 i 6 j − 1, leaving xyj as the uncoloured edge. Let c be a colour not used at x.
Graphs on Surfaces
We know that G drawn on the plane or a sphere has χ(G) 6 5 (well, actually 6 4). What
about G drawn on other surfaces?
1 sPP s1
s PJ 3
s
J JP
PJPs 2J 5P P
JJ
E.g., we can draw K7 on a torus: J P J
P s (with edges identified).
PJ s4 J 7 JPP
6JPP s
1 s J J PJP JJs
P 1
In general?
The surface of genus g (or the compact orientable surface of genus g) consists of a
sphere with g handles attached.
For plane/sphere, n − m + f = 2 for G connected, and n − m + f > 2 for any planar G (add
edges to make G connected).
G on a torus?
Fact. For G on a surface of genus g, we have n − m + f > 2 − 2g. (This is the Euler
characteristic, E = 2 − 2g.)
2m
Thus n − m + > E, and so m 6 3(n − E).
3
27
Theorem 9 (Heawood’s Theorem). Let G be a graph drawn on a surface of Euler char-
acteristic E 6 0.
√
7+ 49 − 24E
Then χ(G) 6 H(E) = .
2
Note. Tantalizingly, H(2) = 4, so “almost” have the Four Colour Theorem (but need E = 2).
Proof. Let G be a graph drawn on the surface, with χ(G) = k. We want k 6 H(E). Choose
minimal G with χ(G) = k. Then δ(G) > k − 1 (by minimality of G) and n > k.
We know m 6 3(n − E), so the sum of all degrees = 2m 6 6(n − E), and so δ(G) 6
6(n − E)/n = 6 − 6E/n.
Thus k − 1 6 δ(G) 6 6 − 6E/n 6 6 − 6E/k (as n > k and E 6 0, which is why this
fails for the Four Colour Theorem).
Remark. Equality holds. We can draw KH(E) on a surface of characteristic E – this took
75 years to prove!
28
Chapter 5 : Ramsey Theory
Suppose we 2-edge-color K6 , e.g., c : E(K6 ) → {1, 2}. Can we always find a monochromatic
K3 (i.e., a K3 on which c is constant)?
Choose x ∈ V (K6 ). We have d(x) = 5, so there are at least 3 edges from x with the same
colour – say xy1 , xy2 , xy3 have colour 1. If any edge yi yj (i 6= j) also has colour 1, then xyi yj
is a colour-1 triangle. But if all edges yi yj are colour 2, then y1 y2 y3 is a colour-2 triangle.
In general, write R(s) for the smallest n (if it exists) such that whenever Kn is 2-coloured
(we now mean “edge-coloured”), there exists a monochromatic Ks (i.e., a Ks on which
c : E(Kn ) → {1, 2} is constant).
Aim. To show that R(s) exists for all s (and find out roughly how fast R(s) grows).
s
#c
E.g., the above shows that R(3) 6 6. In fact, R(3) = 6, because of s# cs
B
Bs s
For s, t > 2, write R(s, t) for the smallest n (if it exists) such that whenever Kn is 2-coloured,
we have either a red Ks or a blue Kt .
Equivalently, R(s, t) is the smallest n (if it exists) such that every graph G on n vertices has
either Ks ⊂ G or Kt ⊂ G.
Theorem 1 (Ramsey’s Theorem). R(s, t) exists for all s, t. And moreover, we have
R(s, t) 6 R(s − 1, t) + R(s, t − 1), for s, t > 3.
Proof. It is enough to show that if both R(s − 1, t) and R(s, t − 1) exist, then we have
R(s, t) 6 R(s − 1, t) + R(s, t − 1), as then R(s, t) exists for all s, t by induction on s + t.
So let a = R(s − 1, t), b = R(s, t − 1). Choose a 2-colouring of Ka+b , and choose
x ∈ Ka+b . Then d(x) = a + b − 1, so we have either > a red edges or > b blue edges
incident with x.
If > a are red, then consider the Ka spanned by the endpoints of the edges from x. By
the definition of a, this Ka contains either a red Ks−1 or a blue Kt .
29
Remarks. 1. So any graph on n vertices has Ks ⊂ G or Ks ⊂ G for n large enough.
2. Very few of the Ramsey numbers R(s, t) are known exactly. (See later.)
s+t−2
Corollary 2. Let s, t > 2. Then R(s, t) 6 . In particular, R(s) 6 22s .
s−1
Write Rk (s1 , . . ., sk ) for the smallest n (if it exists) such that whenever Kn is k-coloured,
there exists a Ksi of colour i, for some 1 6 i 6 k.
Given k > 2 and s1 , . . ., sk , let n = R(s1 , Rk−1 (s2 , . . ., sk )). Then any k-colouring of
Kn may be viewed as a 2-colouring, with colours 1 and “2 or 3 or . . . or k”.
So, by the choice of n, we have either a Ks1 coloured 1 (so done), or a KRk−1 (s2 ,...,sk )
coloured with colours 2, 3, . . . , k (i.e., (k − 1)-coloured), so done by the definition of
Rk−1 (s2 , . . ., sn ).
E.g., r = 3. Colour each triangle red/blue – do we get a 4-set all of whose triangles are the
same colour? (We are asking for a much denser monochromatic structure.)
For X a set and r = 1, 2, . . ., write X (r) = {A ⊂ X : |A| = r}. Unless otherwise stated,
X = [n] = {1, . . ., n}.
Write R(r) (s, t) for the smallest n (if it exists) such that whenever X (r) is 2-coloured (i.e.,
we have c : X (r) → {1, 2}), there exists a red s-set (i.e., A ⊂ X, |A| = s, with c(B) = 1 for
all B ∈ A(r) ) or a blue t-set.
Theorem 4 (Ramsey for r-sets). Let r > 1, s, t > r. Then R(r) (s, t) exists.
30
Proof. Induction on r. Done if r = 1 (pigeonhole principle) or r = 2 (Theorem 1).
Proof of claim. Let a = R(r) (s − 1, t), b = R(r) (s, t − 1), and n = R(r−1) (a, b) + 1.
By symmetry, wlog we have a red a-set Z for c′ , i.e. A ∪ {x} is red for all
A ∈ Z (r−1) . But by the definition of a, Z contains either a red (s − 1)-set for c or
a blue t-set for c.
2. The bounds we get on R(s,t) are quite large: “to get R(r) , iterate R(r−1) about s + t
times”.
Define f1 , f2 , f3 , . . . : N → N as follows:
f1 (x) = 2x, and for n > 2, fn (x) = fn−1 (fn−1 (fn−1 . . .(fn−1 (x)). . .)) .
| {z }
x times
} x times.
2
..
x 2.
So f2 (x) = 2 , f3 (x) = 2 And f4 (x)..?
(These sorts of bounds are often a feature of such double induction proofs.)
Examples. 1. Colour ij red if i + j is even, and blue if odd. Take, e.g., M = {n : n even}.
2. Colour ij red if max{n : 2n divides i + j} is even, and blue otherwise. Take, e.g.,
M = {22 , 24 , 26 , 28 , . . .}.
3. Colour ij red if i + j has an even number of (distinct) prime factors, and blue if odd.
31
Note. Asking for an infinite red set is more than asking for arbitrarily large finite red
sets. For example, consider the colouring for which all edges within the sets {1, 2}, {3, 4, 5},
{6, 7, 8, 9}, {10, 11, 12, 13, 14}, {15, 16, 17, 18, 19, 20},.. . are coloured red, and all other edges
are coloured blue. Then there are arbitrarily large finite red sets, but no infinite red set.
Theorem 5 (Infinite Ramsey). Let N(2) be 2-coloured. Then there exists an infinite
monochromatic M ⊂ N.
Proof. Choose a1 ∈ N. Then there exists infinite B1 ⊂ N \ {a1 }
!
s s !
!
((
(!
such that all edges from a1 to B1 have the same colour,
(
!
h
P hh a!
(
h
P h
aa a B2
P
1 aP P
aP
a
a
say c1 . Choose a2 ∈ B1 . Then there exists infinite 2
B2 ∈ B1 \ {a2 } such that all edges from a2 to B2 are the B1
same colour, say c2 . Continue inductively.
Example. Any sequence in R (or any totally ordered set) has a monotonic subsequence.
Indeed, given sequence x1 , x2 , . . ., 2-colour N(2) by giving ij the colour “up” if xi 6 xj and
“down” if xi > xj . Now apply infinite Ramsey.
E.g., r = 3. 2-colour N(3) by giving ijk (i < j < k) the colour red if i divides j + k, and blue
if not. We can take M = {1, 2, 4, 8, 16, . . .}.
Theorem 6 (Infinite Ramsey for r-sets). Let r > 1, and let N(r) be 2-coloured. Then
there exists an infinite monochromatic subset M ⊂ N.
We obtain points a1 , a2 , . . . in N and colours c1 , c2 , . . . such that any r-set ai1 . . .air (for
i1 < . . . < ir ) has colour ci . But infinitely many of the ci agree, say ci1 = ci2 = . . ..
Then M = {ai1 , ai2 , . . .} is monochromatic.
32
Example. We saw that given points (1, x1 ), (2, x2 ), . . . in R2 , we can find a subsequence
such that the induced function (i.e., piecewise linear, through these dots) is monotonic. In
fact, we can guarantee that the induced function is convex or concave. Colour N(3) by giving
ijk the colour “convex” if `r ` r r and “concave” if r `r and apply Theorem 6.
r `
xi x xk xi xj xk
j
R(3, 3) = 6, R(3, 4) = 9, R(3, 5) = 14, R(3, 6) = 18, R(3, 7) = 23, R(3, 8) = 28, R(3, 9) = 36.
(2)
For example, to show R(4, 4) > 17, 2-colour Z17 by giving ij colour red if i − j is a square
mod 17, and blue if not. (Have to check that there is no monochromatic K4 .)
For more than two colours, the only number is R3 (3, 3, 3) = 17.
This is hard because was are asking “exactly how much disorder” guarantees a given amount
of order – hard to analyse.
“Put it on a computer?”
5-sets, in each of 2( 2 ) colourings.
43
43
To show, for example, R(5, 5) > 43, need to examine 5
But 2( 2 ) > 2800 > 10250 , so no chance.
43
33
Chapter 6 : Random Graphs
It’s easy to see that R(s) > (s − 1)2 : take s − 1 copies of Ks−1 , then colour the edges within
each Ks−1 red, and those between different copies blue.
It was believed (in the 1940s) that perhaps R(s) ∼ cs2 . However. . .
Proof. Choose a colouring of Kn at random, by taking each edge to be red or blue with prob-
s
ability 1/2 each (independently). Then P(a fixed s-set is monochromatic) = 2( 21 )(2) .
n n 1−(2s)
The number of s-sets is , so P(∃ a monochromatic s-set) 6 2 .
s s
n 1−(2s) n s
Thus we must have R(s) > n if 2 < 1, i.e. if < 2(2)−1 .
s s
n ns s
But 6 and s! > 2 2 +1 (for s > 3, by induction on s).
s s!
2
So done if ns 6 2s /2
, i.e. if n 6 2s/2
(But this is a bad viewpoint for later, when we won’t have all graphs equally likely.)
So, to find an actual graph G on 106 points with no K40 in G or G, the best thing to do is
just toss a coin for each edge.
√ s √ √
We have now 2 6 R(s) 6 4s . No better bounds √ s ( s2 → 2 + ǫ or 4 → 4 − ǫ) are known.
(There exists a heuristic argument for each of 2 , 2 , 4s .)
The probability space G(n, p) is defined on the set of all graphs on {1, . . ., n} as follows.
We choose each edge to be present with probability p, and absent with probability 1 − p.
34
s2
Example. In G(5, p), P 1 s
# #ccs3 = p6 (1 − p)4 .
B
5Bs s4
What about a lower bound? (Hopefully better than the trivial lower bound.)
Could: choose a random bipartite graph G, vertex classes X, Y (with |X| = |Y | = n), choos-
ing each edge independently with probability p, and choosing p to make the expected
number of Kt,t less than 1.
2
n 2
Now, the number of Kt,t is , and P(∃ fixed Kt,t ⊂ G) = pt .
t
2
n 2 1 2
So the expected number of Kt,t in G is pt < n2t pt .
t 4
Take p = n−2/t to get E(#Kt,t in G) < 1/4. Whence P(G has no Kt,t ) > 3/4.
Also, E(#edges) = pn2 , so we would get P(e(G) > 12 pn2 ) > 1/2, so there exists G, with
no Kt,t , with e(G) > 12 pn2 = 21 n2−2/t .
1 2−2/(t+1)
Theorem 2. Z(n, t) > n .
2
Idea. If a graph G has m edges and r copies of Kt,t , remove an edge from each copy of Kt,t
to obtain a graph with > m − r edges and no Kt,t , showing Z(n, t) > m − r.
Proof. Choose a random bipartite graph G, vertex classes X, Y (|X| = |Y | = n), by taking
each edge independently with probability p. Let M = e(G), and R = the number of
Kt,t in G.
2
n 2
2
As before, E(M ) = pn and E(R) = pt .
t
2
n 2 1 2
So, using linearity of expectation, E(M − R) = pn2 − pt > pn2 − n2t pt .
t 2
1 2 1
Taking p = n−2/(t+1) , we have E(M − R) > n2−2/(t+1) − n2t−2t /(t+1) = n2−2/(t+1) .
2 2
1 2−2/(t+1) 1
Thus there exists a graph with m − r > n , so Z(n, t) > n2−2/(t+1) .
2 2
35
Graphs with Large χ(G)
To make χ(G) > k – can ensure this by G ⊃ Kk .
In fact, we can have χ(G) much larger than the clique number = max{k : G ⊃ Kk },
because:
(a) the graph G in Theorem 1 (e.g., the red edges) is on n = 2s/2 vertices, with no K ⊂ G
and no independent set (i.e., a set with no edges) of size s. But in any colouring, each
s/2
colour class is an independent set, so χ(G) > 2s−1 – much more than the clique number,
which is 6 s − 1.
(b) We can construct a graph G to be triangle-free (i.e., K3 6⊂ G) but with χ(G) large
(although this is not easy).
Could we have large girth (length of shortest cycle) and still have χ(G) large, for example,
with girth > 10, χ(G) > 100? This seems unlikely, however. . .
Theorem 3. For all k, g, there exists a graph G with χ(G) > k and girth(G) > g.
Idea. Try to find G on n vertices such that the number of short cycles (length 6 g) is 6 n/2,
and every independent set has size 6 n/2k. Then done by removing a vertex in each short
cycle to obtain a graph H with girth(H) > g and χ(H) > (n/2)/(n/2k) = k.
Thus P(x 6 n/2) > 1/2 (else P(x > n/2) > 1/2, whence E(x) > n/4 /\/\).
Let t = n/2k (for n a multiple of 2k) and let y be the number of t-sets that are
independent. Then
n t
E(y) = (#t-sets) × P(given t-set independent) = (1 − p)(2)
t
t
6 nt e−p(2) (because 1 − x 6 e−x ∀ x)
n n2
6 exp log n − 2 n−1+1/g
2k 8k
36
The Structure of a Random Graph
What does a “typical” random graph G ∈ G(n, p) look like?
We would expect a gradual increase of P(no isolated vertices) as we increase p. But in fact
we get a threshold effect:
16
P(no isolated
vertices)
- p
1
This jump or threshold happens below p = constant, since if p = constant then P(a given
vertex is isolated) is exponentially small, whence P(∃ isolated vertex) is also small.
Probability digression/reminder
To show P(X = 0) is large, it is enough to show that the mean µ = E(X) is small. Indeed,
for any t, we have µ > P(X > t)t whence P(X > t) 6 µ/t (known as Markov’s inequality),
so P(X > 1) 6 µ, so P(X = 0) > 1 − µ.
To show P(X = 0) is small, it is not enough to show that µ is large. E.g., take X = 0 with
probability 999/1000, and X = 1010 with probability 1/1000.
So instead look at the variance V = Var(X) = E((X − µ)2 ) = E(X 2 ) − E2 (X). For any t,
P(|X − µ| > t) = P(|X − µ|2 > t2 ) 6 V /t2 , by Markov (known as Chebyshev’s inequality).
37
log n
Theorem 4. Let λ be constant, and let G ∈ G(n, p) where p = λ .
n
If λ < 1 then almost surely G has an isolated vertex. While if λ > 1, then almost surely
G has no isolated vertex.
Remark. Theorem 4 tells us that p = log n/n is a threshold for the property of having an
isolated vertex.
Var(X) = n(1 − p)n−1 (1 − (1 − p)n−1 ) + n(n − 1)(1 − p)n−1 ((1 − p)n−2 − (1 − p)n−1 )
| {z } | {z }
n terms in which A = B n(n − 1) terms in which A 6= B
V 1 p
Thus 2
6 + → 0 as n → ∞. So P(X = 0) → 0 as n → ∞.
µ µ 1−p
A different kind of threshold effect is the clique number of a random graph. Let 0 < p < 1
be fixed. What is the distribution of the clique number of G ∈ G(n, p)?
It turns out that, almost surely, the clique number is a or a + 1 (some a).
38
n (d2)
Theorem 5. Let 0 < p < 1 be fixed, and let d be a real number with p = 1.
d
Then, almost surely, G ∈ G(n, p) has clique number equal to ⌈d⌉, ⌊d⌋, or ⌊d⌋ − 1.
Remark. With more work, we could check that only two values occur.
If k 6 d − 1, then µ → ∞ (check).
k
n (k
)
X k n − k (k2)−(s2) k
Now, V = p 2 p − p( 2 ) .
k s=2 |
s k−s
{z }
#B meeting A in s points
k
V 1 X k n−k k s
So, 2 6 p(2)−(2) .
µ µ s=2 s k−s
Check that the first and last terms dominate – i.e., sum 6 (first + last)× constant.
V k n − k (k2 )−1
So, 2 6 constant× p + 1 , whence V /µ2 → 0.
µ 2 k−2
Thus P(X = 0) → 0.
39
Chapter 7 : Algebraic Methods
What about diameter 2? How many vertices can G have if G has diameter 2 and maximum
degree ∆?
Expanding from a point x, we see that V (G) = {x} ∪ Γ(x) ∪ Γ(Γ(x)). And |Γ(x)| 6 ∆, so
|G| 6 1 + ∆ + ∆(∆ − 1) = 1 + ∆2 .
Equivalently, a k-regular graph is a Moore graph ⇐⇒ for all x 6= y there exists a unique path
of length 6 2 from x to y (for k 6= 1).
Examples.
s
#c
s# cs
1. k = 2. C5 : B
Bs s
s
#c
s cs
# c
s# s
PP
Petersen Graph : B Z B s
B s ZBs
2. k = 3.
Bs
S Ss
s
s s s
s s
Try s s s s s and add further required edges. But this fails!
s s
3. k = 4.
s s s
s
4. k > 4. Ought to keep failing. Why?
s5
0 1 0 1 0
#c
s cs3
1 0 1 0 1
#
2 B
E.g., for 0
we find A = 1 0 1 1
s s
1 B 4
1 0 1 0 0
0 1 1 0 0
40
P
E.g., look at A2 . (A2 )ij = k Aik Akj = the number of walks of length 2 from i to j.
s0 s3 + 7
#c #c
E.g., so 3 s#
B
cs 7
- 6+7+0 # s
B
cs 0 + 3 + (−5)
6 B s s
−5 3 + (−5) Bs s
6+7
I.e., add the values at neighbours. So if x = (6, 3, 7, −5, 0) then Ax = (−2, 13, −2, 13, 10).
1s s1 2s s2
A- so 2 is an eigenvalue.
1s s1 2s s2
1s s−1 −2 s s2
A- so −2 is an eigenvalue (or use
P
= 0)
−1 s s1 2s s−2
n
P
Let e1 , . . ., en P
be an orthonormal basis
2
P of eigenvectors. TakeP x ∈2 R , say x = ci ei , with
||x|| = 1, i.e., ci = 1. Then Ax = ci λi ei , so hx, Axi = λi ci .
So,
min hx, Axi = λmin (take cn = 1, all other ci = 0)
||x||=1
(∗)
max hx, Axi = λmax (take c1 = 1, all other ci = 0)
||x||=1
41
Proposition 1. For any graph G,
(⇒) From (i) we must have d(i) = ∆ and that all j ∈ Γ(i) also have xj = 1. So
we can repeat for each j ∈ Γ(i), then for each k ∈ Γ(j), etc. We obtain d(k) = ∆
for all k (as G is connected).
(⇒) From (i) we must have d(j) = ∆ and xj = −1 for all j ∈ Γ(i). Repeat for
each k ∈ Γ(j), etc. We obtain d(j) = ∆ for all j ∈ G. and for all jk ∈ E we have
xj = 1, xk = −1 or xj = −1, xk = 1. Thus G is regular and has no odd cycle.
(iv) Let x = (1, . . ., 1). Then (Ax)i > δ for all i, so hAx, xi > δhx, xi = δn. Hence
λmax > δ, by (∗) (immediately before Proposition).
Remark. In (ii), if ∆ is an eigenvalue, it has multiplicity 1 (as it has the unique eigenvector
(1, . . ., 1)).
Eigenvalues can link in to other graph parameters. We know that χ(G) 6 ∆ + 1. We can
strengthen this to
Proof of claim. Let B be A with row and column v removed – wlog, the last row and
column.
For any x = (x1 , . . ., xn−1 ), let y = (x1 , . . ., xn−1 , 0). Then (Ay).y = (Bx).x, and
so λmax (G − v) 6 λmax , by (∗).
42
Towards Moore Graphs
A graph G is strongly regular with parameters (k, a, b) if G is k-regular, with any two
adjacent points having exactly a common neighbours, and any two non-adjacent points having
exactly b common neighbours.
Examples.
s s
s s
C4 : has (2, 0, 2).
s
#c
s
# cs
C5 : B has (2, 0, 1)
Bs s
43
Finally,
Remark. k = 2 : C5
k = 3 : Petersen graph
k = 7 : exists
k = 57 : unknown
If k 2 − 2k = 0, then k = 2. Done.
2
t2 + 3 t2 + 3
If 4k − 3 = t2 , then t divides k 2 − 2k = −2 .
4 4
44
Mich. 2007 GRAPH THEORY – EXAMPLES 1 IBL
3. Prove that every connected graph has a vertex that is not a cutvertex.
6. Let T1 , . . . , Tk be subtrees of a tree T , any two of which have at least one vertex in
common. Prove that there is a vertex in all the Ti .
7. Show that every graph of average degree d contains a subgraph of minimum degree at
least d/2.
9. Let G be a graph on vertex set V . Show that there is a partition V1 ∪ V2 of V such that
in each of G[V1 ] and G[V2 ] all vertices have even degree.
10. For which n and m is the complete bipartite graph Kn,m planar?
12. The square of a graph G has vertex set that of G and edge set {xy : dG (x, y) ≤ 2}.
For which n is the square of the n-cycle planar?
13. Prove that every planar graph has a drawing in the plane in which every edge is a
straight-line segment.
+
14. The group of all isomorphisms from a graph G to itself is called the automorphism
group of G. Show that every finite group is the automorphism group of some graph. Is
every group the automorphism group of some (possibly infinite) graph?
Mich. 2007 GRAPH THEORY – EXAMPLES 2 IBL
1. For which n and m is the complete bipartite graph Kn,m Hamiltonian? Is the Petersen
graph Hamiltonian?
2. Let G be a graph of order n with e(G) > n2 − (n − 2). Prove that G is Hamiltonian.
3. Let G be a bipartite graph with vertex classes X, Y . Show that if G has a matching
from X to Y then there exists x ∈ X such that every edge incident with x extends to a
matching from X to Y .
4. Let G be a connected bipartite graph with vertex classes X, Y . Show that every edge
of G extends to a matching from X to Y if and only if |Γ(A)| > |A| for every A ⊂ X,
A 6= ∅, X.
5. Let A be a matrix with each entry 0 or 1. Prove that the minimum number of rows
and columns containing all the 1s of A equals the the maximum number of 1s that can be
found with no two in the same row or column.
6. An n × n Latin square (resp. r × n Latin rectangle) is an n × n (resp. r × n) matrix, with
each entry from {1, . . . , n}, such that no two entries in the same row or column are the
same. Prove that every r × n Latin rectangle may be extended to an n × n Latin square.
+
7. Let G be a (possibly infinite) bipartite graph, with vertex classes X, Y , such that
|Γ(A)| ≥ |A| for every A ⊂ X. Give an example to show that G need not contain a
matching from X to Y . Show however that if G is countable and d(x) < ∞ for every
x ∈ X then G does contain a matching from X to Y . Does this remain true if G is
uncountable?
8. Show that we always have κ(G) ≤ λ(G). For any positive integers k ≤ l, construct a
graph G with κ(G) = k and λ(G) = l.
9. For a set B ⊂ V (G) and a vertex a not in B, an a-B fan is a family of |B| paths from
a to B, any two meeting only at a. Show that a graph G (with |G| > k) is k-connected if
and only if there is an a-B fan for every B ⊂ V (G) with |B| = k and every vertex a not
in B.
10. Let G be a k-connected graph (k ≥ 2), and let x1 , . . . , xk be vertices of G. Show that
there is a cycle in G containing all the xi .
11. For each r ≥ 3, construct a graph G such that G does not contain Kr but G is not
(r − 1)-partite.
12. Let G be a graph of order n that does not contain an even cycle. Prove that each
vertex x of G with d(x) ≥ 3 is a cutvertex, and deduce that G has at most ⌊3(n − 1)/2⌋
edges. Give (for each n) a graph for which equality holds. How does this bound compare
with the maximum number of edges of a graph of order n containing no odd cycles?
13. A deleted Kr consists of a Kr from which an edge has been removed. Show that if G
is a graph of order n (n ≥ r + 1) with e(G) > e(Tr−1 (n)) then G contains a deleted Kr+1 .
14. A bowtie consists of two triangles meeting in one vertex. Show that if G is a graph of
order n (n ≥ 5) with e(G) > ⌊n2 /4⌋ + 1 then G contains a bowtie.
+
15. Let G be an r-regular graph on 2r + 1 vertices. Prove that G is Hamiltonian.
Mich. 2007 GRAPH THEORY – EXAMPLES 3 IBL
1. What is the chromatic number of the Petersen graph? What is its edge-chromatic
number?
4. Show that, for any graph G, there is an ordering of the vertices of G for which the
greedy algorithm uses only χ(G) colours.
10. Let G be a plane graph in which every face is a triangle. Show that the faces of G
may be 3-coloured, unless G = K4 .
12. A minor of a graph G is any graph that may be obtained from a subgraph of G by
successively contracting edges – equivalently, a graph H on vertex-set {v1 , . . . , vr } is a
minor of G if we can find disjoint connected subgraphs S1 , . . . , Sr of G such that whenever
vi vj ∈ E(H) there is an edge from Si to Sj . Show that for any k there is an n such that
every graph G with χ(G) ≥ n has a Kk minor. Writing c(k) for the least such n, show
that c(k + 1) ≤ 2c(k). [Hint: choose x ∈ G, and look at the sets {y ∈ G : d(x, y) = t}.]
Show that c(k) = k for 1 ≤ k ≤ 4, and explain why c(5) = 5 would imply the 4-Colour
Theorem.
13. Let G be a countable graph in which every finite subgraph can be k-coloured. Show
that G can be k-coloured.
+
14. Construct a triangle-free graph of chromatic number 1526.
Mich. 2007 GRAPH THEORY – EXAMPLES 4 IBL
4. Let A be a set of R(4) (n, 5) points in the plane, with no three points of A collinear.
Prove that A contains n points forming a convex n-gon.
5. Let A be an infinite set of points in the plane, with no three points of A collinear. Prove
that A contains an infinite set B such that no point of B is a convex combination of other
points of B.
6. Show that every graph G has a partition of its vertex-set as X ∪Y such that the number
of edges from X to Y is at least 21 e(G). Give three proofs: by induction, by choosing an
optimal partition, and by choosing a random partition.
7. In a tournament on n players, each pair play a game, with one or other player winning
(there are no draws). Prove that, for any k, there is a tournament in which, for any k
players, there is a player who beats all of them. [Hint: consider a random tournament.]
Exhibit such a tournament for k = 2.
8. Let X denote the number of copies of K4 in a random graph G chosen from G(n, p).
Find the mean and the variance of X. Deduce that p = n−2/3 is a threshold for the
existence of a K4 , in the sense that if pn2/3 → 0 then almost surely G does not contain a
K4 , while if pn2/3 → ∞ then almost surely G does contain a K4 .
10. Prove that the matrix J (all of whose entries are 1) is a polynomial in the adjacency
matrix of a graph G if and only if G is regular and connected.
11. Let G be a graph in which every edge is in a unique triangle and every non-edge is a
diagonal of a unique 4-cycle. Show that G is k-regular, for some k, and that the number
of vertices of G is 1 + k 2 /2. Show also that k must belong to the set {2, 4, 14, 22, 112, 994}.
12. Let the infinite subsets of N be 2-coloured. Must there exist an infinite set M ⊂ N all
of whose infinite subsets have the same colour?
+
13. Let A be an uncountable set, and let A(2) be 2-coloured. Must there exist an
uncountable monochromatic set in A?