***Problems in this lecture due 23:59 on April 8***
Let be a finite, connected, simple graph with vertex set
and edge set
A basic (meaning fundamental, not necessarily easy) problem is to compute the number
of
-step walks from
to
in
Problem 1.1. Let be the complete graph on
whose vertex set is
Using nothing but your brain, find a formula for
If you find this problem intractable or, worse, uninteresting, consider a degree in law or medicine.
Math 202A provides an algebraic encoding of graphs. Let be the Hilbert space with orthonormal basis
. Let
be the dual basis of
so that
Does using Dirac notation make this an applied math course? The question is vacuous since there is no such thing as non-applied math, but there are cultural differences between fields which are reflected in their iconography, and hopefully you can at least read a paper in quantum computing at the end of this sequence.
The adjacency operator acts on the vertex basis of
by creating a flat superposition of all vertices adjacent to a given input,
Equivalently, the matrix elements of in the vertex basis are
Thus, the selfadjoint operator encodes the edge set
For example, consider the complete graph on the vertex set
The computational basis in
consists of the vectors
upon which acts according to
Problem 1.2. Show that In particular, show that the trace of
equals the total number of loops (i.e. closed walks) of length
in
The linear algebra approach to counting walks in graphs is to find a basis of on which
acts diagonally.
Problem 1.3. Implement this approach for the complete graph and recover your barehands solution to Problem 1.1.
The mathematical subject which uses eigenvalues of linear operators to analyze graphs is called spectral graph theory. In particular, the spectrum of the adjacency operator on a given graph
is called the adjacency spectrum of
. A couple of facts worth mentioning: if
is bipartite then the spectrum of
is symmetric about
; if
is degree-regular then the largest eigenvalue of
is the degree of any vertex.
Instead of asking how many walks there are between two given vertices, we may ask how far apart they are. This information is encoded in the distance operator , whose matrix elements in the vertex basis tabulate geodesic distance in
,
Ron Graham made the striking discovery that the determinant of the distance operator on a tree depends only on the cardinality of its vertex set. Distance eigenvalues of graphs have been much studied ever since. I found some recent interesting work on distance operators via Johann Birnick’s website; Johann is the TA for this course.
One can in a sense interpolate between and
. To do so, we consider operators
corresponding to metric level sets in
, meaning that
Equivalently,
is the sum of all points on the sphere of radius centered at
. We have that
is the identity operator,
is the adjacency operator, and
This is in fact a finite sum, since is the zero operator for all
exceeding the diameter of
.
One can also consider the exponential adjacency operator
on , whose matrix elements are exponential generating functions enumerating walks between vertices by length,
For regular graphs this is essentially the heat kernel, which has been much studied. The exponential distance operator,
is the element-wise exponential of the distance operator,
and unlike it is a relative newcomer in spectral graph theory.
Looking at the power series which define and
one sees that the level set operators
are to
as powers
of the adjacency operator are to
While the first two elements of these sequences are the same, a big flaw in this symbolic analogy is that the subalgebra of
generated by the (finite) set of selfadjoint operators
is highly non-trivial, whereas the subalgebra of
generated by the single selfadjoint operator
simply consists of polynomials in this operator, which is but a small sector of
In particular, it is not at all clear what relations exist between
and
, or even whether they commute. We will have more to say about this later.
The exponential distance operator encodes the same information as the distance operator
in a manner which interfaces more readily with the formalism of statistical mechanics. More precisely, let us write
so that
Then, fixing a root vertex , the
th row of
defines Gibbs measure (after Josiah, not Amelia) on the vertices of
according to
Physically, this distribution corresponds to a thermodynamic ensemble whose states are the vertices of , with
the inverse temperature and the potential energy
of a state
being equal to its distance
to the root vertex
in
. The partition function
sums the energy over all states, ensuring that is a probability measure on
. Its logarithm
is the free energy of our ensemble, and
is precisely the average distance to the root vertex under the non-uniform distribution
which becomes the uniform distribution on states in the high-temperature limit
limit, where
.
Let us try this out on a toy example, the complete graph on
. Take the root vertex to be
, so that the potential energy of any other vertex
is
Thus, under the corresponding Gibbs measure on states we have
and
where the partition function is
We thus have
and setting we recover the obvious fact that the average distance to
under the uniform measure on the complete graph is
Indeed, for the uniform measure on the complete graph the random variable
has a Bernoulli distribution on
which assigns probability
to
and probability
to
.
Linear operators on graphs fall under the broad umbrella of Math 202A, which treated linear maps between finite-dimensional Hilbert spaces. Math 202B gives us additional algebraic tools which apply to graphs whose vertices form a group; these are officially known as Cayley graphs.
Let be a finite group and
a symmetric set of generators in
. Symmetric means that
implies
, and saying that
generates
means that for any
there exists
and
such that
The Cayley graph
has vertex set
, with
an edge if and only if
for some
which is then necessarily unique. The fact that
is symmetric means that this is a well-defined as an undirected graph without multiple edges, and the fact that
generates
means that the graph is connected. If
does not contain the identity element
then no vertex is adjacent to itself, and we henceforth assume this to be the case. We see that for Cayley graphs
the edge set can effectively be viewed as a subset of the vertex set, since the generating
determines the adjacency relation on vertices.
For a Cayley graph the space
carries not just a scalar product but also a vector product, namely convolution: we have
where is the group product of
and
This gives us a new point of view on the adjacency operator
on
For any subset
let
be the corresponding element of . Thus in particular
Let us allow the following extremely useful abuse of notation: we will also identify with its image in the (right) regular representation of
. Thus,
In particular, is both our chosen generating set of
, and also its image in the regular representation is the adjacency operator on
More generally, let
be the sphere of radius centered at the identity element. This set becomes a vector in
via quantization,
and this vector becomes an operator in via the regular representation,
The matrix elements of the operator are
and
in which case
Thus, the image of in the (right) regular representation is indeed the metric level set operator
To sum up, the adjacency eigenvalues of the Cayley graph are the eigenvalues of
acting in the regular representation of
. This means that the spectral graph theory of Cayley graphs is part of the representation theory of finite groups. If we are in the incredibly fortuitous situation where
is an abelian group, this comes down to using the discrete Fourier transform.
Problem 1.4. Let be the cyclic group of order
with generator
, and take the symmetric generating set
Then
is a cycle graph with
vertices. Find a formula for
the number of
-step walks between two given vertices of a cycle graph.
Concerning distance in Cayley graphs , we by definition have that
is equal to the minimal value of
such that there exist
such that
Problem 1.5. Show that for any we have
and explain why the same cannot in general be said for
Show that
with
the group identity.
Now let us consider a nonabelian example: our group is the symmetric group consisting of all bijections
, which are generally called permutations. We will take the group law to be
which is the convention used in most computer algebra systems, or so I am told. Take the generating set
of adjacent transpositions.
Problem 1.6. Draw for
Set with
the identity permutation.
Now consider the metric Gibbs measure on the Cayley graph of the symmetric group
corresponding to the generating set
of adjacent transpositions. We take the root vertex to be
the identity permutation in
Thus,
where is the minimal number of adjacent transpositions whose produce is
.
Problem 1.7. Show that , where
is the cardinality of the set
of inversions in the permutation
Hence compute the diameter of
We conclude that the metric Gibbs measure on is
This is a famous probability measure on permutations called the Mallows measure; it arises in theoretical computer science in the analysis of sorting algorithms. It is a remarkable fact that the partition function
It is a remarkable fact that this partition function can be evaluated exactly, i.e. this stat mech model is exactly solvable. For any positive integer , the corresponding
-number is
so that in particular reverts to an ordinary number at
The
-factorial is accordingly defined as
Here’s a pretty thing.
Theorem 1.1. The partition function for Mallows measure is
Now you can derive many things, including the following.
Problem 1.8. Find a formula for the expected number of inversions in a random permutation whose distribution is Mallows measure. Using your result, find a formula for the expected number of inversions in a uniformly random permutation.