Lec 3
Lec 3
(a) The complete graph on V means the simple graph (V, P2 (V )). It is
the simple graph with vertex set V in which every two distinct vertices
are adjacent.
If V = {1, 2, . . . , n} for some n ∈ N, then the complete graph on V is
denoted Kn .
(b) The empty graph on V means the simple graph (V, ∅). It is the simple
graph with vertex set V and no edges.
The following pictures show the complete graph and the empty graph on the
set {1, 2, 3, 4, 5}:
2 2
3 3
1 1
4 4
5 5
K0
1
K1
2 1
K2
3
K3
3 1
4
K4
This graph has n vertices and n − 1 edges (unless n = 0, in which case it has
0 edges).
Definition 1.1.3. For each n > 1, we define the n-th cycle graph Cn to be the
simple graph
This graph has n vertices and n edges (unless n = 2, in which case it has 1
edge only). (We will later modify the definition of the 2-nd cycle graph C2
somewhat, in order to force it to have 2 edges. But we cannot do this yet,
since a simple graph with 2 vertices cannot have 2 edges.)
The following pictures show the path graph P5 and the cycle graph C5 :
2 2
3 3
1 1
4 4
5 5
Of course, it is more common to draw the path graph stretched out horizontally:
1 2 3 4 5
Note that the cycle graph C3 is identical with the complete graph K3 .
Question: What are the graph isomorphisms from Pn to itself?
Answer: One such isomorphism is the identity map id : {1, 2, . . . , n} →
{1, 2, . . . , n}. Another is the “reversal” map
{1, 2, . . . , n} → {1, 2, . . . , n} ,
i 7→ n + 1 − i.
There are no others.
Question: What are the graph isomorphisms from Cn to itself?
Answer: For any k ∈ Z, we can define a “rotation by k vertices”, which is the
map
{1, 2, . . . , n} → {1, 2, . . . , n} ,
i 7→ (i + k reduced modulo n to an element of {1, 2, . . . , n}) .
Lecture 3, version April 6, 2023 page 4
Thus we get n rotations (one for each k ∈ {1, 2, . . . , n}); all of them are graph
isomorphisms.
There are also the reflections, which are the maps
{1, 2, . . . , n} → {1, 2, . . . , n} ,
i 7→ (k − i reduced modulo n to an element of {1, 2, . . . , n})
for k ∈ Z. There are n of them, too, and they are isomorphisms as well.
Altogether we obtain 2n isomorphisms (for n > 2), and there are no others.
(The group they form is the n-th dihedral group.)
The vertices of KS,k are the k-element subsets of S, and two such subsets are
adjacent if they are disjoint.
The graph K{1,2,...,5},2 is called the Petersen graph; here is how it looks like:
{1, 4}
{2, 5}
{2, 3}
{3, 4}
{1, 2} {3, 5}
{4, 5}
{1, 5}
{1, 3}
{2, 4}
Lecture 3, version April 6, 2023 page 5
1.2. Subgraphs
Definition 1.2.1. Let G = (V, E) be a simple graph.
(c) Assume that n > 3. Is Cn−1 a subgraph of Cn ? No, because the edge
(n − 1) 1 belongs to Cn−1 but not to Cn .
Proof. This follows from the preceding proposition, since the completeness of
H means that each 2-element subset {u, v} of the vertex set of H is an edge of
H.
We note that triangles in a graph can be characterized in terms of complete
subgraphs. Namely, a triangle “is” the same as a complete subgraph (or, equiv-
alently, induced complete subgraph) with three vertices:
2
2 3
1 4
3
Lecture 3, version April 6, 2023 page 7
(which makes no sense, because there are two points labelled 1 in this picture,
but a graph can have only one vertex 1), but rather should be
(1, 2)
(2, 2) (2, 3)
(1, 1)
(2, 1) (2, 4)
(1, 3)
.
So here is the formal definition:
Definition 1.3.1. Let G1 , G2 , . . . , Gk be simple graphs, where Gi = (Vi , Ei ) for
each i ∈ {1, 2, . . . , k }. The disjoint union of these k graphs G1 , G2 , . . . , Gk is
defined to be the simple graph (V, E), where
1.4.1. Definitions
Imagine a graph as a road network, where each vertex is a town and each edge
is a (bidirectional) road. By successively walking along several edges, you can
often get from a town to another even if they are not adjacent. This is made
formal in the concept of a “walk”:
Definition 1.4.1. Let G be a simple graph. Then:
(c) A path (in G) means a walk (in G) whose vertices are distinct. In other
words, a path means a walk (v0 , v1 , . . . , vk ) such that v0 , v1 , . . . , vk are
distinct.
(d) Let p and q be two vertices of G. A walk from p to q means a walk that
starts at p and ends at q. A path from p to q means a path that starts at
p and ends at q.
3 2
4 1
5 6
Then:
• The sequence (1, 3, 4, 5, 6, 1, 3, 2) of vertices of G is a walk in G. This
walk is a walk from 1 to 2. It is not a path. The length of this walk is 7.
• The sequence (1, 2, 4, 3) of vertices of G is not a walk, since 24 is not an
edge of G. Hence, it is not a path either.
Lecture 3, version April 6, 2023 page 9
Exercise 1. Prove that the edges of a path are always distinct. (See HW1 in
Spring 2017 for a rigorous proof.)
( a0 , a1 , . . . , ak , b1 , b2 , . . . , bℓ ) = ( a0 , a1 , . . . , ak−1 , b0 , b1 , . . . , bℓ )
= ( a0 , a1 , . . . , ak−1 , v, b1 , b2 , . . . , bℓ )
Proof. Since a is not a path, two of its vertices are equal. In other words, there
exist i < j such that ai = a j . Consider these i and j. Now, consider the tuple
a , a , . . . , ai , a j +1 , a j +2 , . . . , a k
|0 1{z } | {z }
the first i +1 vertices of a the last k− j vertices of a
(this is just a with the part between ai and a j cut out). This tuple is a walk from u
i + (k − j) < j + (k − j) = k. So we have found a walk
to v, and its length is |{z}
<j
from u to v whose length is smaller than k. This proves the proposition.
Proof. Apply Proposition 1.4.5 several times, until you get a path. (You will
eventually get a path, because the length cannot keep decreasing forever.)