Graph 06
Graph 06
Definitions:
In this section, we introduce two kinds of matrix representations of a graph,
that is, the adjacency matrix and incidence matrix of the graph.
A graph G with the vertex-set V (G) = {x1 , x2 , · · · , vv } can be described by
means of matrices. The adjacency matrix of G is a v × v matrix
For example, for the digraph D and the undirected graph G shown in Figure 1.26,
their adjacency matrices A(D) and A(G) are as follows.
0 2 0 0 0 2 1 1
0 0 0 0 2 0 1 0
A(D) = 1 1 0 1
, A(G) =
1 1
.
0 1
1 0 0 1 1 0 1 1
a1 e1
x1 x2 x1 x2
a2 e2
a6 e6
D: a5 a3 G: e5 e3
a7 e7
a4 e4
x4 x3 x4 x3
For example, for the digraph D and the undirected graph G shown in Figure 1.26,
the incidence matrix M(D − a7 ) and M(G) are as follows.
1 1 0 0 −1 −1
−1 −1 −1 0 0 0
M(D − a7 ) =
0
,
0 1 1 0 1
0 0 0 −1 1 0
1.10. MATRIX REPRESENTATION OF GRAPHS 43
1 1 0 0 1 1 0
1 1 1 0 0 0 0
M(G) =
0
.
0 1 1 0 1 0
0 0 0 1 1 0 2
The adjacency matrix or the incidence matrix of a graph is another representation
of the graph, and it is this form that a graph can be commonly stored in computers.
The matrix representation of a graph is often convenient if one intends to use a
computer to obtain some information or solve a problem concerning the graph. This
kind of representation of a graph is conducive to study properties of the graph by
means of algebraic methods.
Let
1 2 ··· n
σ=
i1 i2 · · · in
be a permutation of the set {1, 2, · · · , n}. Then we obtain an n × n permutation
matrix P = (pij ) defined by
1, if j = σ(i);
pij =
0, otherwise.
It is not difficult to see that the adjacency matrices of two isomorphic graphs
are permutedly similar. In other words, assume that A and B are the adjacency
matrices of two isomorphic graphs G and H, respectively, then there exists a v × v
permutation matrix P such that A = P−1 BP.
Similarly, the incidence matrices of two isomorphic graphs are permutedly equiv-
alent. In other words, assume that M and N are the incidence matrices of two iso-
morphic graphs G and H, respectively, then there exist a v × v permutation matrix
P and an ε × ε permutation matrix Q such that M = PNQ.
It should be noted that walks could not be replaced by paths in Theorem 1.11
in general.
It is easy to see that there is the unique (x, y)-walk of length n for any pair
(x, y) of vertices in B(d, n). We obtain from Theorem 1.11 immediately that if A
is the adjacency matrix of B(d, n), then An = J, where J is an n-square matrix
all of whose entries are 1. Similarly, if A is the adjacency matrix of K(d, n), then
An + An−1 = J.
Some Examples:
adjacency and incidence matrices are very useful for studying graphs.
Digraphs attaining this upper bound are called (∆, k)-Moore digraphs.
The following example is due to Plesnik and Znom (1974), and rediscovered by
Bridges and Toueg (1980).
Proof: Assume that G is a (∆, k)-Moore digraph whose order n reaches the
Moore bound defined in (1.6), and let A be the adjacency matrix of G. By the
exercise 1.6.2, G is a ∆-regular and simple digraph. Furthermore, by Theorem 1.11,
1.10. MATRIX REPRESENTATION OF GRAPHS 45
we have
I + A + A2 + · · · + Ak = J, (1.12)
AX = rX, JX = 0.
1 + r + r2 + · · · + rk = 0. (1.13)
The expression (1.13) shows that r has the multiplicity (k + 1) as the unite root, i.e.,
rk+1 = 1. Let r1 , r2 , · · · , rn−1 be n − 1 eigenvalues of A other than ∆. By Theorem
1.11, all the main diagonal entries of Ai (1 ≤ i ≤ k) are 0, that is,
TrAi = 0, i = 1, 2, · · · , k.
Taking the conjugates of the above expressions and noting (1.14), we have that
n−1
X n−1
X
−∆ = rj−1 = rjk = −∆k ,
j=1 j=1
By Example 1.10.1, a digraph with the maximum degree ∆ and diameter 2 has
order at most ∆2 + ∆. We have known that the Kautz digraph K(∆, 2) had order
∆2 +∆. Therefore, K(∆, 2) is a maximum (∆, 2)-digraph, which is the unique known
maximum (∆, 2)-digraph up to now.
46 Basic Concepts of Graphs
Graphs attaining this upper bound are called (∆, k)-Moore graphs.
A2 + A − (∆ − 1)I = J. (1.15)
AX = ∆X, JX = nX.
AY = rY, JY = 0.
r2 + r − (∆ − 1) = 0.
1 √ 1 √
r1 = (−1 + 4∆ − 3 ), r2 = (−1 − 4∆ − 3 ).
2 2
Since A is a real symmetric matrix, it has only real eigenvalues. Thus both r1 and
r2 are real numbers.
1.10. MATRIX REPRESENTATION OF GRAPHS 47
If ∆ is such that r1 and r2 are not rational, then each has multiplicity 12 (n − 1)
as an eigenvalue of A since A is rational. Since all main diagonal entries of A are 0,
by a result on the trace of a matrix, the sum of the eigenvalues of A is 0. Namely
1 1
∆ + (n − 1)(r1 + r2 ) = ∆ − ∆2 = 0. (1.16)
2 2
The value of ∆ satisfying (1.16) is only ∆ = 2, for which n = 5 and the corresponding
undirected (2, 2)-Moore graph is an undirected cycle C5 .
The values of ∆ for which r1 and r2 are rational are those for which there is an
integer s such that s2 = 4∆ − 3. Thus
1 1
r1 = (s − 1), r2 = − (s + 1).
2 2
s−1 −s − 1
∆+t + (n − 1 − t) = 0.
2 2
Since the equation (1.17) requires solutions in integers, the only candidates for s are
the factors of 15. These possible solutions are:
s = ±1, t = 0, ∆ = 1, n = 2;
s = ±3, t = 5, ∆ = 3, n = 10;
s = ±5, t = 28, ∆ = 7, n = 50;
s = ±15, t = 1729, ∆ = 57, n = 3250.
There is no undirected graph of degree 1 and diameter 2. The theorem follows.
The undirected (7, 2)-Moore bound is m(7, 2) = 50, the corresponding undi-
rected (7, 2)-Moore graph is determined by Hoffman-Singleton. The uniqueness of
the undirected (3, 2)- and (7, 2)-Moore graphs have been shown by Hoffman and
Singleton.
The undirected (57, 2)-Moore has order 3250, the corresponding undirected (57, 2)-
Moore graph might exist, but no one has been able to construct (or prove the nonex-
T
Proof: Suppose that the vertex-set of G is {x1 , x2 , · · · , xv }, and let N = MM .
Suppose that the entry in position (i, j) of N is nij . Then N is symmetric and
dG (xi ) = d+ −
G (xi ) + dG (xi ), for j = i;
nij =
−µ(xi , xj ) − µ(xj , xi ), 6 i.
for j =
Thus the sum of any row and the sum of any column of N all are 0. It is a routine
T
algebraic exercise to show that the algebraic cofactors of all entries in MM have
the same value (the exercise 1.10.5). Let Nij be the algebraic cofactors of nij in
T
MM , and, without loss of generality, suppose
Nij = N11 , ∀ 1 ≤ i, j ≤ v.
Thus, we have
T
Nij = N11 = det (M1 M1 ), ∀ 1 ≤ i, j ≤ v
as desired.
We conclude this section with some remarks. Let A be the adjacency matrix of
an undirected graph G with the vertex-set {x1 , x2 , · · · , xv }, M the incidence matrix
of any oriented graph D of G, and let B be the v × v diagonal matrix with the
main diagonal entries bii = dG (xi ). It is easily shown that (the exercise 1.10.5)
T
MM = B − A, which is called Laplace matrix in the literature and textbook on
graph theory.
We have known from Example 1.10.3 that all the algebraic cofactors of entries
T T
in MM have the same value, the determinant det (Mi Mi ). This value is a very
important invariant of isomorphic graphs. We will, in Section 2.3, know what this
invariant is.
Exercises
1.10.6 Let A be the adjacency matrix of a graph G (undirected or directed). The
eigenvalues of A is referred to as the eigenvalues of G; the characteristic
polynomial det (λI − A) is referred to as the characteristic polynomial of
G. Suppose that characteristic polynomial of G is
(Exercise 1.10.6)
(b) Prove
X
ck = (−1)ω(H) , k = 1, 2, · · · , v,
H∈Hk
(c) Prove that c1 = 0; −c2 = ε; and −c3 is equal to twice the number of
triangles in G.
(i) λ1 + λ2 + · · · + λv = −c1 ;
multiplicity 1.