Graph Theory: Introduction. Distance in Graphs. Trees
Graph Theory: Introduction. Distance in Graphs. Trees
Later: Euler’s formula relating the number of edges, vertices, and faces of
a convex polyhedron ⇒ generalizations by Cauchy and L’Huillier ⇒ study
of topology and special classes of graphs.
1852: De Morgan introduces the“Four Color Map Conjecture”: four is the
minimum number of colors required to color any map where bordering regions
are colored differently.
1969: Heesch publishes a solving method
1976: computer-generated proof of K. Appel and W. Haken.
1878: The term “graph” was first used by Sylvester in a publication in Nature.
1936: D. König publishes first textbook on graph theory.
a b c d
e f g h
Theorem
In a graph G , the sum of the degrees of the vertices is equal to
twice the number of edges. Consequently, the number of vertices
with odd degree is even.
Combinatorial
P proof.
Let S = v ∈V deg(v ). Notice that in counting S, we count each
edge exactly twice. Thus, S = 2|E | (the sum of the degrees is
twice the number of edges). Since
X X
S= deg (v ) + deg (v )
v ∈V v ∈V
deg (v ) even deg (v ) odd
and S is even, the second sum must be even, thus the number of
vertices with odd degree is even.
Example
a
c b
d e
f g
a, c, f , c, b, d is a walk of length 5.
b, a, c, b, d is a trail of length 4.
d, g , b, a, c, f , e is a simple path of length 6.
g , d, b, c, a, b, g is a circuit.
e, d, b, a, c, f , e is a cycle.
Note that walks, trails and simple paths can have length 0. The
minimum length of a cycle or circuit is 3.
b c b c b c b c
d d d
e f e f e f e f
g g g g
G −d G G −(c, d) G − {(e, g ), (f , g )}
Assumption: G = (V , E ) is a graph.
∅=
6 S ( V is a node cut set of G if G − S is disconnected.
G is complete if every node is adjacent to every other node.
We write Kn for the complete graph with n nodes.
The complete graphs Kn have no node cut sets because Kn − S
is connected for all proper subsets S of the set of nodes.
If G is not complete then the connectivity of G , denoted by
κ(G ), is the minimum size of a node cut set of G .
If G is a connected and incomplete graph of order n, then
1 ≤ κ(G ) ≤ n − 2.
If G is disconnected, then κ(G ) = 0.
If G = Kn then we say that κ(G ) = n − 1.
If k > 0, we say that G is k-connected if k ≤ κ(G ).
d
e
Assumption: G = (V , E ) is a graph.
The complement of G is the graph G whose node set is the
same as that of G and whose
edge set consists of all the edges that are not in E . For example
Theorem
A graph with at least 2 nodes is bipartite if and only if it contains
no odd cycles.
Proof.
“⇒:” Let G = (V , E ) be a bipartite graph with partite sets X and Y ,
and let C = v1 , . . . , vk , v1 be a cycle in G . We can assume v1 ∈ X
w.l.o.g. Then vi ∈ X for all even i and vi ∈ Y for all odd i. Since
(vk , v1 ) ∈ E , we must have k even ⇒ we can not have an odd cycle in G .
“⇐:” We can assume w.l.o.g. that G is connected, for otherwise we
could treat each of its components separately.
Let v ∈ V and define
X = {x ∈ V | the shortest path from x to v has even length},
Y = V \ X.
It is easy to verify that G is a bipartite graph with partite sets X and Y .
a b 1 2
c d 8 3
e f 7 4
g h 6 5
This is so because one graph can be redrawn to look like the other.
a b 1 2
c d 8 3
e f 7 4
g h 6 5
This is so because one graph can be redrawn to look like the other.
a b 1 2
c d 8 3
e f 7 4
g h 6 5
This is so because one graph can be redrawn to look like the other.
The idea of isomorphism formalizes this phenomenon.
a b 1 2
c d 8 3
e f 7 4
g h 6 5
This is so because one graph can be redrawn to look like the other.
The idea of isomorphism formalizes this phenomenon.
Isomorphic graphs
Two graphs G = (V1 , E1 ) and H = (V2 , E2 ) are isomorphic if there
is a bijective mapping f : V1 → V2 such that (x, y ) ∈ E1 if and
only if (f (x), f (y )) ∈ E2 .
Isabela Drămnesc UVT Graph Theory and Combinatorics – Lecture 8 22 / 33
Isomorphic graphs
Figure: Two graphs G and H with same order and size, which are
not isomorphic.
Example
d(b, k) = 4, d(c, m) = 6.
ecc(a) = 5 since the farthest nodes from a are k, m, n, and they are a
distance 5 from a.
Example
Theorem 1
For any connected graph G , rad(G ) ≤ diam(G ) ≤ 2 rad(G ).