Professional Documents
Culture Documents
Helmberg Talk12
Helmberg Talk12
Topics: Graphs, Matrix representations of Graphs, in particular the graph Laplacian, some
applications and results in spectral graph theory
1
A subgraph G0 = (N 0 , E 0 ) of G is induced if E 0 = {ij ∈ E : i, j ∈ N 0 }.
A walk (of length k ∈ N0 ) in G (between u ∈ N and w ∈ N ) is a sequence of edges
({u = v0 , v1 }, v1 v2 , . . . , {vk−1 , vk = w}) with vi vi+1 ∈ E and the vi not nec. distinct. A walk
with u = w is closed .
Exercise 1.1 For G = (N, E) and u, w ∈ N put dG (u, w) to be the minmum length of a
walk between u and w if one exists and ∞ otherwise. Show that d : N × N → N0 ∪ {∞}
defines a metric on G and that any existing shortest walk is a path (as a subgraph in G).
This d is the shortest path distance.
n
o
Attention! We will need to be careful not to mix up the degree dG (i) of a node and the
distance dG (i, j) between nodes i and j. 4
n
o
0
Proof: By induction:X A = I is ok.X
(Ak−1 )i,• · A•,j = (Ak−1 )ih ahj = (append hj to each k − 1 walk from i to h).
h∈N hj∈E
k
In particular (A )ii gives the number of closed walks of length k starting and P
ending in i.
Hence, the trace (the sum of diagonal elements of a square matrix) tr(A ) = i∈N (Ak )ii
k
yields the sum of all closed walks of length k over all starting nodes in G.
Remember the spectral theorem for symmetric matrices:
Theorem 1.3 (Spectral decomposition for symmetric matrices)
Let A = A> be a symmetric matrix of order n. All its eigenvalues are real and it has an or-
thonormal basis of eigenvectors, i. e., there is a diagonal matrix ΛA = Diag(λ1 (A), . . . , λn (A))
and a matrix P = [v1 , . . . , vn ] with P > P = In = P P > so that
n
X
>
A = P ΛA P = λi (A)vi vi> .
i=1
Exercise 1.4 Show that for matrices U ∈ Rn×m , V ∈ Rm×n the trace is invariant under
rotations,
P tr U V = tr V U . Use this to show tr A = tr ΛA . In consequence, for a simple
graph ni=1 λi (A)3 /3 gives the number of triangles (C3 subgraphs) of G.
n
o
2
For the extremal eigenvalues the following characterization is useful.
v > Av
λmax (A) = max v > Av = max ,
kvk=1 v6=0 v>v
v > Av
λmin (A) = min v > Av = min ,
kvk=1 v6=0 v>v
otherwise it is irreducible.
A reducible adjacency matrix has at least two connected components, so for a connected
graph it is irreducible.
3
Suppose yi = 0, then yj = 0 for all ij ∈ E and by connectednedss y = 0, thus y > 0
componentwise.
Suppose µ1 is not simple, then there is an eigenvector z with z > y = 0, thus with negative
entries. Choose α so that y + αz ≥ 0 with at least one zero entry to see the contradiction
as before.
Let Az = µz with
>
Pkzk = 1 andPsome eignevalue µ, then
|µ| = |z Az| = | Aij zi zj | ≤ Aij |zi ||zj | ≤ µ1 .
So every connected component gives rise to a block submatrix of A with a corresponding
strictly positive eigenvector on its support to its largest eigenvalue.
Under which circumstances is there another eigenvalue µ with |µ| = µ1 ?
˙ 2 , E ⊆ {ij : i ∈ N1 , j ∈ N : 2}) is called bipartite. Graph theory tells
A graph G = (N1 ∪N
us
Theorem 1.8 A graph is bipartite if and only if it contains no cycle of odd length.
4
P
Equivalently, using the canonical unit vectors ei (i-th column of IN ), LG = ij∈E Eij where
Eij = (ei − ej )(ei − ej )> (value 1 in ii, jj, value −1 in ij, ji and 0 otherwise). Both versions
also work for multigraphs.
For x ∈ Rn we have
X X
x> Lx = x> (ei − ej )(ei − ej )> x = (xi − xj )2 ≥ 0.
ij∈E ij
Thus, L is positive semidefinite and has a smallest eigenvalue λ1 (L) = 0 with eigenvector 1.
Recall the various characterizations of positive semidefinite matrices:
Proof: Exercise
A tree is a connected graph that contains no cycle. A not nec. connected graph containing
no cycles is a forest, so a tree is a connected forest.
A subgraph (N 0 , E 0 ) of G = (N, E) is spanning if N 0 = N .
Exercise 1.12 Every connected graph contains a spanning tree.
n
o
Theorem 1.13 (Matrix-Tree Theorem)
Given a multigraph G = (N, E) and i, j ∈ N , the number of its spanning trees is
n
(i,j) 1Y
det LG = λj (LG ),
n j=2
Proof: We first prove for i ∈ N that det L(i,i) gives the number of spanning trees in G
by induction on n and for each n > 1 on the number of edges. For n = 1 the cofactor
is 1, so let n > 1. If i has degree d(i) = 0 then row i and column i are both zero in LG
(i,i)
and det LG = det LG−i = 0. So assume there is an edge ij ∈ E. Then by induction
(LG − ej eTj )(i,i) gives the number of spanning trees of G − ij and increasing element jj by
one increases this number by (L(i,i) )(j,j) which is by induction the number of spanning trees
of G/{i, j} where ij is contracted, i. e., where ij is part of the spanning tree.
For the Laplacian det L(i,i) = det L(i,j) for i, j ∈ N because in L any column is the negative
sum of the others.
5
For proving det L(i,i) = n1 nj=2 λj (L) note that in the polynomial det(tI −L) = t nj=2 (t−λj )
Q Q
the coefficient of t is (−1)n−1 nj=2 λj (L) = ddt det(tI − L)|t=0 . By the Leibniz-formula
Q
d
det(tI − L)|t=0 = i∈N (−1)n−1 det(L(i,i) ).
P
dt
Exercise 1.14 Prove that det(L + n1 11> ) also gives the number of spanning trees.
n
o
Corollary 1.15 The number of connnected components of a graph is equal to the multi-
plicity of the zero eigenvalue of its Laplacian.
6
Max-Cut
Partition G into two subgraphs connected by as many edges as possible.
For x ∈ {−1, 1}N , X X
x> L w x = wij (xi − xj )2 = wij 4,
ij∈E ij∈E,xi =−xj
1 > 1 >
max 4
x Lx = min max 4
x (L − Diag(y))x
x∈{−1,1}N y∈RN x∈{−1,1}N
1 > y=0
n
≤ min λ (L
4 max
− Diag(y))
y∈RN
1> y=0
= min nλmax ( 14 L − Diag(y)) + 1> y
y∈RN
= min 1> y
y∈RN
1
L−Diag(y)0
4