Beruflich Dokumente
Kultur Dokumente
Graph Theory
prepared by
1
Contents
1 Introduction 3
1.1 Notations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Digraphs 4
2.1 Directional Duality Principle . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 The Adjacency Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 Isomorphism . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.4 Multidigraphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.5 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 Undirected Graphs 8
3.1 Some Classes of Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2 Adjacency Matrix and Isomorphism . . . . . . . . . . . . . . . . . . . . . 10
3.3 Connected Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.4 Subgraphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.5 Hamiltonian Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.6 Eulerian Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.7 Independence Number and Dominance Number . . . . . . . . . . . . . . . 12
3.8 Coloring of Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.9 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2
1 Introduction
Graph theory is widely thought to have originated from a puzzle that was posed by
the townsfolk of Königsberg, Prussia in the early 1700s. Königsberg (now known as
Kaliningrad) was built largely on an island in the Pregel river, this island sits near where
two branches of the river join, and the borders of the town spread over to the banks of
the river as well as a nearby promontory. Between these four land masses, seven bridges
had been erected as shown in Figure 1 below. The townspeople supposedly posed the
question, “Is it possible to take a walk through town, crossing each of the seven bridges
just once, and ending up wherever you started?”
The famous Swiss mathematician Leonhard Euler (pronounced “Oiler”) heard of the
problem, solved it (its not possible) and in the process invented Graph Theory. Since
the question involved the connection of land masses by bridges, Euler realized that all
the points on the island (for example) were equivalent as far the question was concerned,
so the island as well as the banks and the promontory could be represented with single
points. In Figure 2 we see what Königsberg and its bridges look like in Eulers abstracted
version.
............
...
... ..........
... ............
..
. ... .....
.... ... ......
... ......
.. ... .....
..... .. .....
.....
... ... .....
... ... .....
... .. . .....
... .. .....
... . . .....
... .... ....
...........................................................................
.......
. . ... ..
. ......
...
.... ..... .
......
... ... .....
... ... .
........
...
... .....
..
... .....
....
... .....
. .....
...
.... ........
... ..
... ... .......
... ... ....
... ............
... .........
............
...
Figure 2: The graph that corresponds to Königsberg and its seven bridges.
3
vertices or points. On the other hand, otehr names are used for the molecular structure
in chemistry, flowcharts in programming, human relations in social sciences, and so on.
These lectures are based on “Graph Theory” by Dr. Severino Gervacio which ap-
peared on the NRCP Research Bulletin Vol. 39, No.2, June 1984 and Vol. 40, No.2,
June 1985
1.1 Notations
• For a finite set X, |X| denotes its cardinality or the number of its elements.
• Let
[1, n] = {1, 2, . . . , n};
and in general,
[i, n] = {i, i + 1, . . . , n}
for integers i ≤ n.
• For a real number x, the floor and the ceiling of x are the integers
2 Digraphs
Definition 2.1. A digraph D consists of two sets V (D), the vertex set, a nonempty
set of elements called the vertices of D, and A(D), the arc set, a set of elements called
the arcs such that each arc a ∈ A is assigned an ordered pair of vertices (u, v). If V
is finite, then |V (D)| is called the order of D and |A(D)| is called the size of D. The
digraph D is said to be infinite if |V (D)| is infinite.
Definition 2.2. If a is an arc, in the directed graph D, with associated pair of vertices
(u, v), then u is said to be adjacent to v and v is said to be adjacent from u, u is
called the initial vertex of a and v is called the terminal vertex of a. An arc of the
form (v, v) is called a loop.
4
................. .................
..... . ... .
..................................................................................
1 .
....
.....
.
. . ....
......
....................
........
...
....
..
2 .
.
... ..
.. .......
.....
... ... ... ...
... .
...
. ... ..... ...........
.. . ... .......... ....
.... ..
. .....
.... ..
..
.... .... ...... ..
..
.... ... .......
......... .
.... ... ........................
...
...
...
...
...
...... 3
...
... ..
. ...........
............ ...
.... ...
...
... ...
.... ...
.... ...
.... .....
....... ..... .
....
... ....
5 4
5
2.2 The Adjacency Matrix
Definition 2.8. Let D be a digraph with vertices x1 , x2 , . . . , xn . The adjacency matrix
of D denoted by A is the n × n matrix [aij ] where
1 if (xi , xj ) is an arc in D
aij =
0 if (xi , xj ) is not an arc in D
2.3 Isomorphism
Definition 2.9. Two digraphs D1 and D2 are isomorphic if there exists a bijective
mapping φ : V (D1 ) → V (D2 ) such that (a, b) is an arc in D1 if and only if (φ(a), φ(b))
is an arc in D2 . The mapping φ is called an isomorphism. If D1 is isomorphic to D2 ,
we shall write D1 ∼= D2 , otherwise, we shall write D1 6∼
= D2 .
Theorem 2.5. Let D1 and D2 be digraphs and let φ be an isomorphism of D1 onto D2 .
Then for each vertex v in D1 , id(v) = id(φ(v)) and od(v) = od(φ(v))
Note. Two digraphs with the same size and order and with the same number of outde-
grees and indegrees may not be isomorphic.
Definition 2.10. An automorphism of a digraph D is an isomorphism of D onto D.
Remark. Given any digraph, the set of all automorphisms forms a group under com-
position of mappings.
2.4 Multidigraphs
Definition 2.13. A multiset is a collection of objects that are not necessarily distinct.
If X is a multiset and a ∈ X, we define the multiplicity of a, denoted by m(a), to be
the number of occurrences of a in X. The underlying set of X, denoted by X 0 is the set
whose elements are precisely the elements of X but with multiplicity 1 only.
Definition 2.14. A multidigraph M consists of a non-empty vertex set V (M ) which
is finite and an arc set A(M ) which is a multiset.
6
Definition 2.15. An independent (stable) set S of a multidigraph M is a subset of
V (M ) where no two elements of S are adjacent. An absorbant set T of a multidigraph
M is a subset of V (M ) if every element of V − T is adjacent to at least one element of
T . A set K ⊆ V (M ) of a multidigraph M is called a kernel if K is both independent
and absorbant.
Remarks.
1. A sink is always an element of every kernel.
2. A multidigraph may have no kernel.
3. A multidigraph may have exactly one kernel.
4. A multidigraph may have two or more kernels.
5. For every K ∈ Z+ , there exists a multidigraph with exactly k kernels.
2.5 Exercises
1. Consider Figure 3,
(a) Find the order and size of the digraph.
(b) Find the outdegree and indegree of each vertex in the digraph.
(c) Find a source, a sink, a carrier and an isolated vertex if there are any.
(d) Find a walk of length 6.
(e) Find a path of length 3.
(f) Find a circuit.
2. Let D be the digraph with vertex set V (D) = [3, 8] and where (A, B) ∈ A(D) if
and only if A is a factor of B. Draw the digraph D and find its size.
3. Write down the adjacency matrix for the digraph in Exercise 2.
4. Let D be a finite digraph such that for every v ∈ V (D), od(v)+id(v) is odd. Prove
that D is of even order.
5. Let D be a finite digraph. Let (u, v) be an arc in D if and only if x > y. Prove
that there are no circuits.
6. Given D1 and D2 below, show that D1 ∼
6 D2 .
=
2 ......
b
........
..... . .....
................ ...
..... .........
..... ..... .....
..... ..... .....
.....
.....
............... ..... .
....
.
.. .....
.. ..... .
. .....
..
......
. .....
..
..
.
... .....
... .....
.
.. .. .......... ..... .
..
.
.
.... .............. .
..
.
.
..... ..............
....
. ..... ...
. .....
.. ..... .. .....
..
....
. ....... ..
..... .......
......
...... . ...
..... .......
..... . ...
.....
... ... ... ...
1 3 a c
D1 D2
7
7. Given D1 and D2 below, show that D1 6∼
= D2 .
................... ..........
............... ...................
.... . ........ .......... .....
... .. ...... .....
.. ... ..... ....
..
. .. ...... ...
...............................................................................................................................................................................
..... ..................................................................................................................................................................................
.....
... .... ...
... .... ...
... .... ...
... .... ...
... ... .... ...
... .... ...
... .... ...
... .... ...
...
1 2 3 4 5 a b c d e
D1 D2
8. Give an example of a digraph that is isomorphic to its converse.
(c) If a digraph has an even number of arcs, then the number of vertices with
odd outdegree is even.
12. Construct a digraph of order 6 with 3 kernels.
................ ................ ................ ................ ................ ................ ................ ................ ................ ................
.......... ................ ............... ................ ............... ................ ............... ................ ............... ................ ............... ................ ............... ................ ............... ................ ............... ................ ............... ................
...... ............. ............. ............. ............. ............. ............. ............. ............. ............. ..........
..... .. .. .. .. .. .. .. .. .. ....
.... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... .... ....
....
. .... .......
. .... .......
. .... .......
. .... .......
. .... .......
. .... .......
. .... .......
. .... .......
. .... .......
. ....
.
... ...
. ...
... .. .
... ...
... .. .
... ...
... .. .
... ...
... .. .
... ...
... .. .
... ...
... .. .
... ...
... .. .
... ...
... .. .
... ...
...
...
...
.
... .... .. .
. .. .
. .. .
. .. .
. .. .
. .. .
. .. .
. .. .
. .. ...
. . .. .. .. .. .. .. .. .. .
.................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
...
.. .. ...
... .. ...
... .. ...
... .. ...
... .. ...
... .. ...
... .. ...
... .. ...
... .. ...
... .. ...
... .. ...
...
1 2 3 4 5 6 7 8 9 10 11 12
3 Undirected Graphs
Definition 3.1. A multigraph G consists of two sets V (G), the vertex set, a
nonempty set of elements called the vertices of G, and E(G), the edge set, a mul-
tiset of elements called the edges such that each edge e ∈ E is assigned an unordered
pair of vertices [u, v]. If V is finite, then |V (G)| is called the order of G and |E(G)| is
called the size of G. The multigraph G is said to be infinite if |V (G)| is infinite.
Definition 3.2. If e is an edge, in the multigraph G, with end vertices u and v, then e
is denoted by [u, v] or [v, u] where u and v are said to be adjacent or u is adjacent to
v. An edge of the form (v, v) is called a loop.
Definition 3.3. Let G be a multigraph. The degree of a vertex v, denoted by deg(v), is
the number of edges incident with it. A loop is counted twice in determining the degree.
8
Theorem 3.1. Let G be a multigraph of size m. Then
X
deg(v) = 2m
v∈V (G)
Corollary 3.1.1. In any multigraph, the number of vertices with odd degree is even.
Definition 3.4. A (simple) graph G consists of two sets V (G), the vertex set, a
nonempty set of elements called the vertices of G, and E(G), the edge set, a set of
elements called the edges.
......
......
.....
..... .. ......
...... .... ..........
.
. .
. ..... ... ......
... ..... ... ......
......
.
...... .... ......
......... . ......
......
...... ..
. ......
..... .... ......
....
.
. ........ . .. . ...
.
......
......
. ....... ...
.
. . .
.. ......
. ....... .
.. .... ......
......
.... ...
. .. ...
. ...........
.......
..... . ....
. . . ......
.
...
.. .
.... ..........
........... ..
.
. ...
... ... .. .................
.
... ........... ....
. .
.. ...
. ... .. ...
.. ...
........ ..
... .... .................................................................................... ....
...
......... .
. ... ... ..
.. . .
...
... ...... ..
. .. ........ .
..
... ...... ... ..
... ...... .... ... ........... ...
... ........
. ...... ...
... ......... ........ ..
... ... ........... .......... .... ...
.
... ... ...
... ... ........... .
... ... ...... ........... .... ...
... .. ....... ...... ... ..
...
... ..
..............
. .........
. .
... ... .
...
....... ...
... ..... ...
.....
... ... ... ...
... ... ... ..
...
.. ... ...
.. .
...
... . ...
... ...... ... ...
... ... ... ...
........ .. ..
..... ...................................................................................................................
.. ..
..
9
Definition 3.11. A graph G is said to be bipartite if its vertex set can be partitioned
into nonempty subsets X and Y in such a way that each edge consists of one vertex from
each set.
A complete bipartite graph is a bipartite graph in which every vertex in X is
adjacent to each vertex in Y . Km,n denotes the complete bipartite graph with partite
sets of sizes m and n.
Definition 3.12. A connected graph without cycles is called a tree.
1 if xi and xj are adjacent
aij =
0 otherwise.
3.4 Subgraphs
Definition 3.17. A graph H is a subgraph of G if V (H) ⊆ V (G) and E(H) ⊆ E(G).
If V (H) = V (G) and E(H) ⊆ E(G), then H is called a spanning subgraph of G. For
a set of vertices V (H), we use G[V (H)] to denote the induced subgraph of G whose
10
vertex set is V (H) and whose edge set is the subset of E(G) consisting of those edges
with both ends in V (H).
If H is a subraph of G, we write in symbols H ⊆ G. If H 6= G, then H is called a
proper subgraph of G.
Theorem 3.3. A graph of size m has exactly 2m spanning subgraphs.
Definition 3.18. Let P be a graph property or condition. We say that a subgraph H of
G is maximal with respect to the property P if
1. H has the property P and
2. For every subgraph H ∗ of G which contains H properly, H ∗ does not have property
P.
Remarks.
11
3.6 Eulerian Graphs
Definition 3.24. An Eulerian walk in a graph G is a spanning walk containing each
edge of G exactly once. A graph is Eulerian if it has a closed Eulerian walk.
Theorem 3.5. The following statements are equivalent for a connected graph G:
1. G is Eulerian.
Theorem 3.6. A connected graph G of order at least two contains two disjoint minimal
dominating sets.
n
Corollary 3.6.1. Let G be a connected graph G of order n. If n ≥ 2, then β(G) ≤ .
2
Theorem 3.7. Let G be a graph and let S be an independent set in G. Then S is a
maximal independent set if and only if S is a dominating set.
Corollary 3.7.1. For any graph G, β(G) ≤ α(G) .
Definition 3.28. The chromatic number of a graph G, denoted by χ(G) is the least
integer λ such that there exists a λ-coloring of G.
12
Definition 3.29. The chromatic polynomial of a graph G, denoted by P (G, λ) rep-
resents the number of ways of coloring the graph using at most λ colors.
Theorem 3.8. Chromatic Reduction Formula 1
Let G be a graph and let a, b be non-adjacent vertices in G. Let G0 be the graph
obtained from G by adding the edge [a, b] and let G00 be the graph obtained from G by
identifying a and b. Then,
3.9 Exercises
1. Consider the graph below.
13
b ......
......
...
..... .........
..... .....
........
. .....
..... .....
....
. .....
...
. .....
....... .....
.....
......
. .....
... ..... ..........................
.
...
.
.. ..... ........ ......
.
..
. ..... ...... .....
....
. ..... ..... ....
........ a .
.. .
.... .....
. ..
..... ....
.
. .. ... . . ...... ... .
..... ............. ............................................................................ ......
.....
.... .... .......
.
......... ...... d .
.
... .
..
.
... .....
.. .
...
...
.... ...
.....
.....
..... .
..
.
...
.. ....
.
. ....
.......
. ..
....... e
... f
. ........ ..
..... ..... ...............................
..... .....
..... .....
..... .....
.....
..... ........
..... ....
..... .....
..... .....
..... .....
..... .........
..........
......
c
(a) Find the order and size of the graph.
(b) Find the degrees of each vertex in the graph.
(c) Find a walk of length 12.
(d) Find a path of length 3.
(e) Find a cycle.
GMA
|
..................................................................................................
| | |
Luli Mikey Dato
|
Mikaela
3. Write down the adjacency matrix for the graphs in Exercises 1 and 2.
4. Draw the graph whose adjacency matrix is given below.
0 0 1 1 1
0 1 0 1 0
0 0 0 0 0
1 0 1 0 1
1 1 0 0 0
14
(a) C10 (b) K10 (c) the Petersen graph
(a) the complete graph K6 (b) the complete bipartite graph K1,5
11. Find a counterexample to show that if G and H have the same order and are both
3-regular then G ∼
=H
12. Determine if the polynomial λ3 − 4λ2 + 3λ is chromatic.
13. Determine the chromatic polynomial of the following graph.
................
........ .
....... ... ... .......
....... ... .... ..............
............
. .
.. ... .......
.. .
... ..... ... ... .......
.......
.... ...
... .......
....... ... ....... ..
.............
..... .... ... ...... ...
........ ... ... .......
...
..... .. ... .....
.....
..... ..
.
. ...
. ........
.
..... .. ... ..
....
..... . ... ..
..... ..... ... .........
......... ..........
................................................................
.... ...
14. Let G be a connected graph and [a, b] a bridge of G. Prove that the graph G0
obtained by removing [a, b] has exactly two components.
15. If [a, b] is a bridge of a connected graph G of order n ≥ 3, prove that a or b is a
cut vertex.
16. Let G be a connected graph and [a, b] ∈ E(G). Prove that [a, b] is a bridge if and
only if it does not lie an any cycle of G.
17. Prove that, if G is a bipartite graph with an odd number of vertices, then G is
non-Hamiltonian.
18. Prove that every tree is a bipartite graph.
15