# Math202C: Lecture 17 – Expander Graphs

Author: Haixiao Wang

As demonstrated in [1], expander graphs are a sparse graph that mimic the structure properties of complete graphs, quantified by vertex, edge or spectral expansion. At the same time, expander constructions have spawned research in pure and applied mathematics, with several applications to complexity theory, design of robust computer networks, and the theory of error-correcting codes.

This lecture is organized as follows. We introduce two different definitions of expanders in the first section, and then explore the relationship between them in second part.

## 17.1. Two Definitions

We start our discussion in expansion with two definitions of expansion: combinatorial and spectral. In the rest of this post, we consider an undirected graph $G = (V, E)$ with $|V| = n$, where self loops and multiple edges are allowed. Given two subsets $S,T \subset V$, the set of edges between $S$ and $T$ is denoted by $E(S, T) = \{(u,v ): (u, v) \in E, u\in S, v\in T\}$.

## 17.1.1. Combinatorial expansion

Intuitively, a graph $G=(V,E)$ is an expander if subsets $S \subseteq V$ expand outwards into $V \setminus S$. In other words, all small subsets will have large boundary, respectively. Follow this intuition, we introduce the definition of boundary, based on edges and vertices respectively, to quantify the corresponding expansion.

Definition 1(Boundary):

• The Edge Boundary of a set $S$, denoted by $\partial S$, is the set of edges $\partial S = E(S, V \setminus S)$, which is the set of edges between disjoint set $S$ and $V \setminus S$.
• The Vertex Boundary of a set $S$ is a subset of vertices in $V \setminus S$ adjacent to vertices in $S$, denoted as $N(S)$.

Obviously, vertex boundary $|N(S)|$ is the same as the number of neighboring vertices of vertex sets $S$. With those notations, we then define the expansion over the entire graph $G$ via maximizing over subsets $S$.

Definition 2(Expander): For some $\varepsilon \in [0, 1]$, a graph $G = (V, E)$ with $|V| = n$ is an

• $\varepsilon$-edge-expander if $\min\limits_{ S\subset V, |S| \leq \frac{n}{2} } \frac{|\partial S|}{|E(S, V)|} \geq \varepsilon$.
• $\varepsilon$-vertex-expander if $\min\limits_{ S\subset V, |S| \leq \frac{n}{2} } \frac{|N(S)|}{|S|} \geq \varepsilon$.

Remark 3: The reason for the restriction $|S| \leq n/2$ is that we are examining the relative size of every cut in the graph, i.e., the number of edges crossing between $S$ and $V \setminus S$, and we examine each case only once.

Problem 1: Show that the complete graph $K_{n}$ is

• at least a $1/2$-edge-expander.
• a $1$-vertex-expander. (We only consider $\varepsilon \in [0, 1]$ here.)

From the definition above, the maximum $\varepsilon$, which makes $G = (V, E)$ an $\varepsilon$-edge-expander, is an important criteria, leading to the definition of Cheeger constant.

Definition 4(Cheeger Constant): The Edge Expansion Ratio, or Cheeger constant, of graph $G = (V, E)$ with $|V| = n$, denoted by $h(G)$, is defined as

$h(G) = \min\limits_{S\subset V, |S| \leq \frac{n}{2}}\frac{|\partial S|}{|E(S, V)|}$

Remark 5: Actually, Cheeger constant can be defined alternatively as $\min\limits_{S\subset V, |S| \leq n/2}\frac{|\partial S|}{|S|} = O(n)$. We didn’t follow this definition since we want to keep $\varepsilon\in [0, 1]$.

## 17.1.2. Spectral Expansion

To simplify our discussion, we focus on regular graphs in the rest of this lecture. Let $A = A(G)\in \mathbb{R}^{n \times n}$ denote the adjacency Matrix of a $d$-regular graph $G = (V, E)$ with $|V| = n$ and $A$ being real symmetric, then $A$ has $n$ real eigenvalues, denoted by $\lambda_{1} \geq \lambda_{2} \geq \cdots \geq \lambda_n$, and corresponding orthonormal eigenvectors $v_1, \dots, v_n$ with $A v_i = \lambda_i v_i$. The spectrum of $A$ encodes a lot of information about the graph structure. Recall the following properties, which we have seen in previous lectures.

• The largest eigenvalue is $\lambda_1 = d$ and the corresponding eigenvector is $v_1 = (1/\sqrt{n}, \dots, 1/\sqrt{n})$.
• The graph $G$ is connected if and only if $\lambda_1 > \lambda_2$.
• The graph is bipartite if and only if $\lambda_1 = -\lambda_n$.

The definition of spectral expansion and spectral gap then follows.

Definition 6(Spectral Expansion): A graph $G = (V, E)$ with $|V| = n$ is a $\lambda$-spectral-expander if $\lambda(G):= \max \{ |\lambda_2|, |\lambda_n| \} \leq \lambda$.

In other words, the second largest eigenvalue of $A(G)$, in absolute value, is at most $\lambda$. This also gives rise to the definition of Ramanujan graph.

Definition 7(Ramanujan graph): A connected $d$-regular graph $G$ is a Ramanujan graph if $\lambda (G)\leq 2\sqrt{d-1}$.

We now refer to the spectral gap.

Definition 8(Spectral Gap): The spectral gap of $d$-regular graph $G$ is $\lambda_{1} - \lambda(G)$.

Remark 9: Sometimes the spectral gap is defined as $\lambda_1 - \lambda_2$, which is often referred as one-sided.

Problem 2:

• Show that the complete graph $K_{n}$ has spectral gap $n - 2$. Actually, we can also show that the one-sided spectral gap is $n$.
• Show that the complete bipartite graph $K_{m, n}$ has spectral gap $0$. (Hint: use the spectral property above.)

## 17.2. Relating Two Definitions

It is not so obvious that the combinatorial and spectral versions of expansion are related. In this section, we will introduce two relations between edge and spectral expansion: the Expander-Mixing Lemma and Cheeger’s inequality.

## 17.2.1. The Expander-Mixing Lemma

Lemma 10(Expander-Mixing Lemma[2]): Let $G = (V, E)$ be a $d$-regular graph with $n$ vertices and eigenvalues $\lambda_1 \geq \dots \geq \lambda_n$. Then for all $S, T \subset V$:

$\Bigg| |E(S, T)| - \frac{d|S|\cdot |T|}{n}\Bigg| \leq \lambda(G) \sqrt{|S|\cdot |T|}.$

As we can see, the left-hand side measures the deviation between two quantities:

• $|E(S, T)|$: the number of edges between the two subsets $S$ and $T$.
• $|S|\cdot |T|\cdot d/n$: the expected number of edges between two subsets $S$ and $T$, drawn from an Erdos–Renyi random graph $G(n, d/n)$.

The Expander-Mixing lemma tell us a small $\lambda(G)$ (a.k.a. large spectral gap) implies that this discrepancy is small, leading to the fact that the graph is nearly random in this sense, as discussed in [1]. We should mention that the converse of expander-mixing is true as well, stated as follows.

Lemma 11(Expander-Mixing Lemma Converse [4]): Let $G = (V, E)$ be a $d$-regular graph with $n$ vertices and eigenvalues $\lambda_1 \geq \dots \geq \lambda_n$ satisfying:

$\Bigg| |E(S, T)| - \frac{d|S|\cdot |T|}{n}\Bigg| \leq \rho \sqrt{|S|\cdot |T|}.$

for any two disjoint subsets $S,T\subset V$ and some positive $\rho$. Then $\lambda(G) \leq O(\rho \cdot(1 + \log(d/\rho)))$.

Proof of Expander-Mixing Lemma: Recall that the adjacency matrix $A$ has eigenvalues $\lambda_1 \geq \dots \geq \lambda_n$ with corresponding orthonormal eigenvectors $v_1, \dots, v_n$. Let $1_S$ and $1_T$ be the characteristic vectors of subsets $S$ and $T$(a.k.a., the $v$-th coordinate of $1_S$ is $1$ if $v\in S$ and $0$ otherwise). We then decompose $1_S$ and $1_T$ in the orthonormal basis of eigenvectors $v_1, \dots, v_n$ as

$1_S = \sum\limits_{i=1}^n \alpha_i v_i, \quad 1_S = \sum\limits_{j=1}^n\beta_j v_j$.

Observing that $|E(S, T)| = (1_S)^T A 1_T$, we expand out the right hand side and apply orthogonality, which yields

$(1_S)^T A 1_T = \left (\sum\limits_{i=1}^n \alpha_i v_i \right)^T A \left (\sum\limits_{j=1}^n\beta_j v_j \right) = \sum\limits_{i=1}^n \lambda_i\alpha_i\beta_i = d\frac{|S|\cdot|T|}{n} + \sum\limits_{i=2}^n \lambda_i\alpha_i\beta_i$.

where the last step follows from the facts $\lambda_1 = d$ with corresponding $v_1 = (1/\sqrt{n},\dots, 1/\sqrt{n})$, $\alpha_1 =<1_S, v_1> = |S|/\sqrt{n}$ and $\beta_1 =<1_T, v_1> = |T|/\sqrt{n}$. Shifting the first term on right hand side to the left, the desired result follows from Cauchy-Schwarz inequality:

$\left| |E(S, T)| - d\frac{|S||T|}{n} \right | = \left|\sum\limits_{i=2}^n\lambda_i\alpha_i\beta_i\right| \leq \lambda(G) \sum\limits_{i=2}^n |\alpha_i \beta_i| \leq \lambda(G) ||\alpha||_2 ||\beta ||_2 = \lambda(G) ||1_S||_2 ||1_T||_2 = \lambda(G)\sqrt{|S||T|}.$

Remark 12: If we normalize the adjacency matrix $A = A(G)$ and obtain $\bar{A} = (1/d) A$, where each entry of $A$ is divided by $d$, then the corresponding eigenvalues of $\bar{A}$, namely $\bar{\lambda}_{1}\geq \dots \geq \bar{\lambda}_n$, lie in the interval $[-1, 1]$. The Expander-Mixing Lemma is in the form of

$\Bigg| |E(S, T)| - \frac{d|S|\cdot |T|}{n}\Bigg| \leq \bar{\lambda}(G)d \sqrt{|S|\cdot |T|}.$

It is sometimes convenient to consider the normalized spectrum. For example in random graph theory, it would be convenient to look at the normalized spectrum when the expected degree $d = O(\log n)$. However, we can focus on the spectrum of $\latex A = A(G)$ without normalization when the expected degree $\latex d = O(1)$.

Regular $\lambda$-spectral expanders with small $\lambda(G)$(a.k.a. large spectral gap) have some of significant properties, listed as follows.

Corollary 13: An independent set , in a graph $G = (V, E)$ with $|V| = n$, is a set of vertices $S$, where no two vertices in $S$ are adjacent, i.e. with $|E(S, S)| = 0$. An independent set $S$, in a $d$-regular $\alpha$-spectral expander $G$, has cardinality at most $\alpha n$, i.e., $|S|\leq \alpha n$, which follows immediately from Lemma 10(Expander-Mixing Lemma[2]).

Corollary 14: Given a graph $G = (V, E)$ with $|V| = n$, the diameter of $G$ is defined as $\mathrm{diam}(G) = \max\limits_{u, v}d_{G}(u, v)$, where $d_{G}(u, v)$ is the length of shortest path between $u$ and $v$. If $G$ is a $d$-regular $\alpha$-spectral expander $G$ with $\alpha < d/2$, then we have

$\Omega \Big( \frac{\log n}{\log d} \Big) \leq \mathrm{diam}(G) \leq O(\log n).$

## 17.2.2. Cheeger’s Inequality

As we have seen from previous discussion, spectral expansion implies strong structural properties on the edge-structure of graphs. In this section, we introduce another famous result, Cheeger’s inequality, indicating that the Cheeger constant(Edge Expansion Ratio) of a graph $G$ can be approximated by the its spectral gap $\lambda_1 - \lambda(G)$.[6]

Theorem 15(Cheeger’s inequality, [3]): Let $G = (V, E)$ be a $d$-regular graph with eigenvalues $\lambda_1\geq \cdots \geq \lambda_n$, then

$\frac{d - \lambda_2}{2} \leq \min\limits_{S\subset V, |S|\leq n/2} \frac{|\partial S|}{|S|} \leq \sqrt{2d(d - \lambda_2)}$.

In the normalized scenario $\bar{A} = (1/d)A(G)$ with eigenvalues $\bar{\lambda}_{1}, \cdots, \bar{\lambda}_n \in [-1, 1]$, we have

$\frac{1 - \bar{\lambda}_2}{2} \leq h(G):=\min\limits_{S\subset V, |S|\leq n/2} \frac{|\partial S|}{|E(S, V)|} \leq \sqrt{2(1 - \bar{\lambda}_2)}$.

Remark 16: The proof for the normalized scenario is different from the regular scenario. We should start from the desired quantity and finish the calculation step by step. However, the strategy are the same. We use the Rayleigh Quotient to obtain upper bound and lower bound.

In the context of $n\gg d$, the estimate of spectral gap was given by Nilli Alon.

Theorem 17([5]): For every $d$-regular graph $G$, we have

$\lambda(G) \geq 2\sqrt{d - 1} - o_{n}(1)$

The $o_{n}(1)$ term is a quantity that tends to zero for every fixed $d$ as $n \to \infty$.

[1]. Shlomo Horry, N. L. and Wigderson, A. (2006). Expander graphs andtheir applications.BULLETIN (New Series) OF THE AMERICAN MATHEMATICAL SOCIETY, 43(4).

[2]. Alon, N. and Chung, F. R. K. (1988). Explicit construction of linear sized tolerantnetworks.Discrete Mathematics, 42

[3]. Cheeger, J. (1970). A lower bound for the smallest eigenvalue of the laplacian.Problems inanalysis, 26.[Nilli, 1991] Nilli, A. (1991). On the secon

[4]. Yonatan Bilu, N. L. (2006). Lifts, discrepancy and nearly optimal spectral gap.Com-binatorica, 26

[5]. Nilli, A. (1991). On the second eigenvalue of a graph.Discrete Mathematics, 91(2):207–210.

[6]. Lovett, S. (2021). Lecture notes for expander graphs and high-dimensional expanders.