Applications of Graph Theory
Applications of Graph Theory
4, 19-38, 2007
Abstract
The best known of these methods are related to a part of graph theory called
19
8. Pirzada and Ashay Dharwadker
matchings, and the results from this area are used to prove Dilworth’s chain
decomposition theorem for finite partially ordered sets. An application of
matching in graph theory shows that there is a common set of left and right coset
representatives of a subgroup in a finite group. This result played an important
role in Dharwadker’s 2000 proof of the four-color theorem [8] [18]. The existence
of matchings in certain infinite bipartite graphs played an important role in
Laczkovich’s affirmative answer to Tarski’s 1925 problem of whether a circle is
piecewise congruent to a square. The proof of the existence of a subset of the real
numbers R that is non-measurable in the Lebesgue sense is due to Thomas [21].
Surprisingly, this theorem can be proved using only discrete mathematics
(bipartite graphs). There are many such examples of applications of graph theory
to other parts of mathematics, but they remain scattered in the literature [3]
[16].
In this paper, we present a few selected applications of graph theory to other
parts
Here we discuss the graph theoretical proof of the classical result of Schréder and
Bernstein. This theorem was presumed to be an obvious fact by Cantor
(cf. remark 1.2) and later proved independently by Schréder (1896) and Bernstein
(1905). The proof given here can be found in [14] and is attributed to Kénig.
bijection from A onto B, that is, A and B have the same cardinality.
20
21
of G is either a one-way infinite path (that is, a path of the form xo, X1,....
Xns--+)s
or a two-way infinite path (of the form ..., X), Xot,---5 X-1 > X0s X1y--+5
Xny---), OF A
cycle of even length with more than two vertices, or an edge. Note that a finite
path of length greater or equal to two cannot be a compound of G. Thus, in each
component there is a set of edges such that each vertex in the component is
incident with precisely one of these edges. Hence, in each component, the subset
There are many proofs of Fermat’s Little Theorem. The first known proof was
communicated by Euler in his letter of March 6, 1742 to Goldbach. The idea of
the graph theoretic proof given below can be found in [12] where this method,
together with some number theoretic results, was used to prove Euler’s
2.1, Theorem (Fermat). Let a be an integer and let p be a prime such that a is not
Proof. Consider the graph G = (V, £), where the vertex set V is the set of all
sequences (a), a,..., Gp») of natural numbers between | and a (inclusive), with
a; # a; for some i#/. Clearly, Vhas a’ — a elements. Let u = (i, wu, ..., Up),
v = (up, W1,..., Mp1) € V. Then, we say wv © E. With this assumption, each vertex
8. Pirzada and Ashay Dharwadker
a’ -a ;
. That is, p/a’-a. =
number of components is
It can be seen [2] that G is a Cayley graph of the group H if and only if G
22
23
Proof. We first show that in any group H and for any set S of generators of H, the
Cayley graph G(H, S) contains a cycle of length > 2 if and only if there is a
nontrivial relation among the generators in S. To show this, suppose
a, € S, 1 < i < nn, such that x,,a" =x,, where e, € {l,-l}. Hence,
Xx, =X, 40" =x, a5" a s..sxyaj'ay.a”, that is, the —_ identity
n
8. Pirzada and Ashay Dharwadker
l=ay'a;...a*. If this were a trivial relation, then there would exist an integer i,
| <i<u, such that a;=a;-; and ¢, = —¢,,,. However, this implies that x;) = xj+1, a
contradiction. Similarly, if aj'a;...a°"=1 is a nontrivial relation, then
X0, Xijeee) Xl, Yn, Where x, =x,,4;',1<isn, and xo = x,, is a closed trial in
mutation in DNA, It is known that SNPs are the most common source of genetic
24
25
Figure 4.1. The DNA double helix and SNP assembly problem
R {ft fr fs fs f
st A B B
52 B A A A 0
83 0 0 B B A
Ss A 0 A 0 B
85 A B B B A
S6 B A A 0
Note, for instance, that s; and ss are in conflict because R(s), 2) = B, R(s1, fs)
= B,
R(ss, #2) = B, R(ss, fs) = A. Again, sq and s¢ are in conflict because R(s4, fi) =
A,
R(s4, 3) = A, R(s6, fi) = B, R(s6, f3) = A. Similarly, all pairs of conflicting
SNPs are
easily determined from the table. The conflict graph G corresponding to this SVP
(5) )
We now use the vertex cover algorithm [6] to find minimal vertex covers in the
conflict graph G. The input is the number of vertices 6, followed by the adjacency
matrix of G shown below in figure 4.3. The entry in row 7 and column / of the
adjacency matrix is | if the vertices s; and s; have an edge in the conflict graph
and
0 otherwise.
27
oOroococo
oorcvcco
ooooco;9o
ProoUr oO
ooro9or
oOorcooqo
The vertex cover program [6] finds two distinct minimum vertex covers, shown in
figure 4.4.
Thus, either removing s;, s4 or removing s4, ss; solves the given SNP assembly
problem.
28
8. Pirzada and Ashay Dharwadker
A team of computer scientists led by Eric Filiol [11] at the Virology and
Cryptology Lab, ESAT, and the French Navy, ESCANSIC, have recently used the
vertex cover algorithm [6] to simulate the propagation of stealth worms on large
computer networks and design optimal strategies for protecting the network
Figure 5.1. The set {2, 4,5} is a minimum vertex cover in this computer network
The simulation was carried out on a large internet-like virtual network and
showed that that the combinatorial topology of routing may have a huge impact
on the worm propagation and thus some servers play a more essential and
29
In a college there are m professors x), x2, ..., X» and m subjects v1, 2, ..., ¥n
to be
taught. Given that professor x; is required (and able) to teach subject y; for pj
periods (p = [pj] is called the teaching requirement matrix), the college
administration wishes to make a timetable using the minimum possible number of
periods. This is known as the ¢imetabling problem [4] and can be solved using the
following strategy. Construct a bipartite multigraph G with vertices
X15 X25 1:5 Xm» Vis Vas +++5 Yn Such that vertices x; and y; are connected by p;
edges.
We presume that in any one period each professor can teach at most one subject
and that each subject can be taught by at most one professor. Consider, first, a
single period. The timetable for this single period corresponds to a matching in
the
graph and, conversely, each matching corresponds to a possible assignment of
professors to subjects taught during this period. Thus, the solution to the
timetabling problem consists of partitioning the edges of G into the minimum
number of matchings. Equivalently, we must properly color the edges of G with
the minimum number of colors. We shall show yet another way of solving the
problem using the vertex coloring algorithm [7]. Recall that the ine graph L(G) of
G has as vertices the edges of G and two vertices in L(G) are connected by an
edge if and only if the corresponding edges in G have a vertex in common. The
line graph L(G) is a simple graph and a proper vertex coloring of L(G) yields a
proper edge coloring of G using the same number of colors. Thus, to solve the
8. Pirzada and Ashay Dharwadker
¥4, ¥s to be taught [4]. The teaching requirement matrix p = [p,] is given below in
figure 6.1.
P| Mi | ¥2) V3 | Ya | Ys
x} 2/0}]1)140
x2} O0}1)0)1)0
x3/0]/1)/1)140
xy} O}O]0)1) 1
30
31
We first construct the bipartite multigraph G shown above in figure 6.2. Next,
we construct the line graph 1(G). The adjacency matrix of L(G) is given below.
01110000000
10110000000
1101200031000
11100100110
00000110000
00011000110
000010031100
00100010100
000102111010
000101200101
00000000010
Now, we use the vertex coloring algorithm [7] to find a minimum proper
Vertex Coloring: ( 1 , green )( 2, red )(3, blue )(4, yellow) (5, yellow )
(6, green )(7, green) (8, yellow )(9, red )( 10, blue ) (11, yellow ). This,
32
33
1/2\)3\4
1 Mi | Vi | V3 | M4
x2 | Wa J2
X3 | V2 | Va ¥3
x4 va | Vs
Given a map drawn on the plane or the surface of a sphere, the famous four color
theorem asserts that it is always possible to properly color the regions of the map
such that no two adjacent regions are assigned the same color, using at most four
distinct colors [8] [18] [1]. For any given map, we can construct its dual graph as
follows. Put a vertex inside each region of the map and connect two distinct
vertices by an edge if and only if their respective regions share a whole segment
of their boundaries in common. Then, a proper vertex coloring of the dual graph
We use the vertex coloring algorithm [7] to find a proper coloring of the map of
India with four colors, see figures 7.1 and 7.2 above.
ranges. The reason why only four different frequencies suffice is clear: the map of
the cellular regions can be properly colored by using only four different colors!
So,
the vertex coloring algorithm may be used for assigning at most four different
frequencies for any GSM mobile phone network, see figure 7.2 below.
34
35
8. KNIGHT’S TOURS
In 840 A.D., al-Adli [17], a renowned shatranj (chess) player of Baghdad is said
to have discovered the first re-entrant knight's tour, a sequence of moves that
takes the knight to each square on an 8x8 chessboard exactly once, returning to
the original square. Many other re-entrant knight's tours were subsequently
discovered but Euler [10] was the first mathematician to do a systematic analysis
in 1766, not only for the 8x8 chessboard, but for re-entrant knight's tours on the
general nxn chessboard. Given an nxn chessboard, define a knight's graph with a
vertex corresponding to each square of the chessboard and an edge connecting
vertex i with vertex / if and only if there is a legal knight's move from the
square
corresponding to vertex i to the square corresponding to vertex j. Thus, a re-
entrant knight's tour on the chessboard corresponds to a Hamiltonian circuit in the
knight's graph. The Hamiltonian circuit algorithm [9] [13] has been used to find
[2]
[3]
[4]
REFERENCES
1 (1977) 125-130.
J.A. Bondy and U.S.R. Murty, Graph Theory with Applications, 1976,
36
37
[5]
[6]
[7]
[8]
[9]
[10]
[11]
[12]
[13]
[14]
[15]
http://www. waset.org/pwaset/v23/v23-68.pdf
K. Heinrich and P. Horak, Euler's theorem, Am. Math. Monthly, Vol. 101
(1994) 260.
[17]
[18]
[19]
[20]
[21]
S. Pirzada
Department of Mathematics
University of Kashmir
Srinagar 190006
India
http://www. geocities.com/dharwadker/pirzada
Ashay Dharwadker
http:/Avww. geocities.com/dharwadker
38