Graphs An Introduction Look Inside
Graphs An Introduction Look Inside
Foreword v
1 Introduction 1
3 Trees 37
4 Chromatic Numbers 49
5 Planar Graphs 55
8 Ramsey Theory 89
9 Directed Graphs 99
Solutions 153
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
2 Eulerian Circuits and Hamiltonian Cycles . . . . . . . . . . . . 191
3 Trees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
4 Chromatic Numbers . . . . . . . . . . . . . . . . . . . . . . . . 227
5 Planar Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . 241
6 Matching in Bipartite Graphs . . . . . . . . . . . . . . . . . . . 252
7 Extremal Graph Theory . . . . . . . . . . . . . . . . . . . . . . 262
8 Ramsey Theory . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
9 Directed Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . 307
10 Infinite Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
Appendix A: Probabilities in Graph Theory . . . . . . . . . . . . . . 354
Appendix B: Linear Algebra in Graph Theory . . . . . . . . . . . . . 373
Glossary 383
Introduction
We will now define some important objects that have a more global im-
portance in the graph. Suppose one wants to plan a trip, going from city to
city by airplane. This is what we will call a trail. Additional conditions, such
as not going through the same city twice, give rise to new notions.
Definition 1.3. In a graph G:
4 Chapter 1
• The distance between two vertices u and v, usually denoted by d(u, v),
is the length of the shortest path between u and v.
• The girth of a graph is the length of the minimal cycle (if one exists,
otherwise it is ∞).
Introduction 5
Definition 1.4. A graph is connected if for any two vertices v and w, there
is a path from v to w.
Remark. (Connected components) We observe that graphs that are not
connected are essentially ‘a collection of connected graphs’.
We will call the maximal connected subgraphs of a graph G the connected
components of G.
• A graph is called regular if all vertices have the same degree (k-regular
if all degrees are k).
• Kn is the complete graph on n vertices, i.e. the graph with all possible
edges between n vertices.
• Km,n is the complete bipartite graph, i.e. the bipartite graph with sets
A and B such that |A| = m, |B| = n and all the possible edges between
A and B are drawn.
Introduction 7
• Two graphs are called isomorphic if ‘they are the same graph’.
The problems in this introduction are meant not so much to develop theory
(this we will do later), as to get us used to graphs and to train our intuitions.
Pigeonhole Principle
The pigeonhole principle is the basic observation that if we have nk + 1
objects in n sets, then there is a set with at least k + 1 objects.
Proposition 1.7. In any graph on 6 vertices, there exist three vertices that
are pairwise connected, or three vertices that are pairwise not connected.
Introduction 9
Proof. Pick a vertex, say v. By the pigeonhole principle, there are three other
vertices that are either all connected or all not connected to v. Assume the
former.
If two of these are connected between themselves, they form a triangle
with v. Otherwise, the three of them are pairwise not connected.
Similarly for the case in which the three vertices are not connected to v.
In general, the pigeonhole principle can come in handy when we have a lot
of edges and wanting to find something like a complete subgraph.
A more general version of this problem, and other similar problems, are to
be found in the Ramsey theory chapter.
Double Counting
The technique of double counting consists of expressing something in two
different ways and then deducing that the results are equal.
Simple as it might sound, the technique of double counting comes in very
handy in many areas of combinatorics, including graph theory. This is perhaps
to be expected, given the fact that we are dealing with two objects, vertices
and edges. The most basic observation is:
Proof. The left-hand side counts edges: d(v) counts those edges that are inci-
dent on v. But we can easily observe that each edge uv is counted twice, once
for d(u), and once for d(v). The conclusion follows.
(Formally, both sides count the number of pairs (v, e), where v is a vertex,
and e an edge incident on v. For each v, there are d(v) pairs, while for each
e, there are exactly two pairs).