Lec 2
Lec 2
Lec 2
(These equalities are pretty easy to check: Each edge e ∈ E that contains v
contains exactly one neighbor of v, and conversely, each neighbor of v belongs
to exactly one edge that contains v. However, these equalities are specific to
simple graphs, and won’t hold any more once we move on to multigraphs.)
For example, in the graph
3 2
4 1 5
,
Proposition 1.1.3 (Euler 1736). Let G be a simple graph. Then, the sum of
the degrees of all vertices of G equals twice the number of edges of G. In
other words,
∑ deg v = 2 · |E (G)| .
v ∈V( G )
Since these two results must be equal, we thus see that ∑ deg v = 2 · | E|.
v ∈V
But that’s the claim of Proposition 1.1.3.
Proposition 1.1.5. Let G be a simple graph with at least two vertices. Then,
there exist two distinct vertices v and w of G that have the same degree.
Lecture 2, version April 6, 2023 page 3
Proof. Assume the contrary. So the degrees of all n vertices of G are distinct,
where n = |V ( G )|.
In other words, the map
deg : V ( G ) → {0, 1, . . . , n − 1} ,
v 7→ deg v
is injective. But this is a map between two finite sets of the same size (n). When
such a map is injective, it has to be bijective (by the pigeonhole principle).
Therefore, in particular, it takes both 0 and n − 1 as values.
In other words, there are a vertex u with degree 0 and a vertex v with degree
n − 1. Are these two vertices adjacent or not? Yes because of deg v = n − 1; no
because of deg u = 0. Contradiction!
(Fine print: The two vertices u and v must be distinct, since 0 ̸= n − 1. It is
here that we are using the “at least two vertices” assumption!)
V = {1, 2, 3, 4, 5, 6} ;
E = {12, 23, 34, 45, 56, 61, 14, 25, 36} .
Here is a drawing:
3 2
4 1
5 6
.
This graph has no triangle (which, by the way, is easy to verify without
checking all possibilities: just observe that every edge of G joins two vertices
of different parity, but a triangle would necessarily have two vertices of equal
parity). Thus, by the contrapositive of Mantel’s theorem, it satisfies e ≤ n2 /4
with n = 6 and e = 9. This is indeed true because 9 = 62 /4. But this also
entails that if we add any further edge to G, then we obtain a triangle.
Lecture 2, version April 6, 2023 page 4
w 4
5
.
• How many red edges can there be? I claim that there are at most n − 2.
Indeed, each vertex other than v and w is connected to at most one of v
and w by a red edge, since otherwise it would form a triangle with v and
w.
• How many blue edges can there be? The vertices other than v and w,
along with the blue edges that join them, form a graph with n − 2 vertices;
this graph has no triangles (since G has no triangles). By the induction
Lecture 2, version April 6, 2023 page 5
hypothesis, however, if this graph had more than (n − 2)2 /4 edges, then
it would have a triangle. Thus, it has ≤ (n − 2)2 /4 edges. In other words,
there are ≤ (n − 2)2 /4 blue edges.
≤ 1 + (n − 2) + (n − 2)2 /4 = n2 /4.
In other words, e ≤ n2 /4. This contradicts e > n2 /4. This is the contradiction
we were looking for, so the induction is complete.
Quick question: What about equality? Can a graph with n vertices and
exactly n2 /4 edges have no triangles? Yes (for even n). Indeed, for any even n,
we can take the graph
(keep in mind that ij means the 2-element set {i, j} here, notthe product i · j).
We can also do this for odd n, and obtain a graph with n2 − 1 /4 edges (which
is as close to n2 /4 as we can get when n is odd – after all, the number of edges
has to be an integer). So the bound in Mantel’s theorem is optimal (as far as
integers are concerned).
r − 1 n2
e> · .
r 2
Then, there exist r + 1 distinct vertices of G that are mutually adjacent.
1 2 3 1 3 2
and .
1 2 3 1 3 2
and
are isomorphic, because the bijection between their vertex sets that sends
1, 2, 3 to 1, 3, 2 is an isomorphism. Another isomorphism between the
same two graphs sends 1, 2, 3 to 2, 3, 1.
3 2
1 2 3
4 1
5 6 A B C
and
are isomorphic, because the bijection between their vertex sets that sends
1, 2, 3, 4, 5, 6 to 1, B, 3, A, 2, C is an isomorphism.
Here are some basic properties of isomorphisms (the proofs are straightfor-
ward):
Proposition 1.2.2. Let G and H be two graphs. The inverse of a graph iso-
morphism ϕ from G to H is a graph isomorphism from H to G.
Lecture 2, version April 6, 2023 page 7
Proposition 1.2.4. Let G and H be two simple graphs, and ϕ a graph isomor-
phism from G to H. Then:
Proposition 1.2.5. Let G be a simple graph. Let S be a finite set such that
|S| = |V ( G )|. Then, there exists a simple graph H that is isomorphic to G
and has vertex set V ( H ) = S.
Proof. Straightforward.