Spectral and Electrical Graph Theory. Daniel A. Spielman Dept. of Computer Science Program in Applied Mathematics Yale Unviersity

Similar documents
Laplacian Matrices of Graphs: Spectral and Electrical Theory

Spectral Graph Theory and its Applications. Daniel A. Spielman Dept. of Computer Science Program in Applied Mathematics Yale Unviersity

Algorithms, Graph Theory, and Linear Equa9ons in Laplacians. Daniel A. Spielman Yale University

Graphs, Vectors, and Matrices Daniel A. Spielman Yale University. AMS Josiah Willard Gibbs Lecture January 6, 2016

Algorithms, Graph Theory, and the Solu7on of Laplacian Linear Equa7ons. Daniel A. Spielman Yale University

Graph Sparsification I : Effective Resistance Sampling

Algorithmic Primitives for Network Analysis: Through the Lens of the Laplacian Paradigm

Lecture 1. 1 if (i, j) E a i,j = 0 otherwise, l i,j = d i if i = j, and

An Algorithmist s Toolkit September 10, Lecture 1

Lecture 24: Element-wise Sampling of Graphs and Linear Equation Solving. 22 Element-wise Sampling of Graphs and Linear Equation Solving

Data Analysis and Manifold Learning Lecture 7: Spectral Clustering

Sparsification of Graphs and Matrices

Fitting a Graph to Vector Data. Samuel I. Daitch (Yale) Jonathan A. Kelner (MIT) Daniel A. Spielman (Yale)

Lecture 12: Introduction to Spectral Graph Theory, Cheeger s inequality

Graph Partitioning Using Random Walks

Lecture 13: Spectral Graph Theory

Graph Partitioning Algorithms and Laplacian Eigenvalues

Lecture: Modeling graphs with electrical networks

Effective Resistance and Schur Complements

1 Matrix notation and preliminaries from spectral graph theory

Spectral Graph Theory Lecture 3. Fundamental Graphs. Daniel A. Spielman September 5, 2018

Physical Metaphors for Graphs

Diffusion and random walks on graphs

Ma/CS 6b Class 23: Eigenvalues in Regular Graphs

U.C. Berkeley CS270: Algorithms Lecture 21 Professor Vazirani and Professor Rao Last revised. Lecture 21

Walks, Springs, and Resistor Networks

Fast Linear Solvers for Laplacian Systems UCSD Research Exam

Dissertation Defense

Fiedler s Theorems on Nodal Domains

ORIE 6334 Spectral Graph Theory October 13, Lecture 15

Spectral Graph Theory Lecture 2. The Laplacian. Daniel A. Spielman September 4, x T M x. ψ i = arg min

Fiedler s Theorems on Nodal Domains

An Introduction to Spectral Graph Theory

Towards Practically-Efficient Spectral Sparsification of Graphs. Zhuo Feng

Algorithms, Graph Theory, and Linear Equations in Laplacian Matrices

Data Analysis and Manifold Learning Lecture 3: Graphs, Graph Matrices, and Graph Embeddings

Four graph partitioning algorithms. Fan Chung University of California, San Diego

Bruce Hendrickson Discrete Algorithms & Math Dept. Sandia National Labs Albuquerque, New Mexico Also, CS Department, UNM

Random Walks on Graphs. One Concrete Example of a random walk Motivation applications

Lecture Introduction. 2 Brief Recap of Lecture 10. CS-621 Theory Gems October 24, 2012

Graph Sparsifiers: A Survey

Constant Arboricity Spectral Sparsifiers

Lecture 10. Lecturer: Aleksander Mądry Scribes: Mani Bastani Parizi and Christos Kalaitzis

Graphs in Machine Learning

MATH 567: Mathematical Techniques in Data Science Clustering II

Spectral Graph Theory

Space-Variant Computer Vision: A Graph Theoretic Approach

Introduction. 1.1 First Things. 1.2 Introduction. 1.3 Mechanics. Spectral Graph Theory Lecture 1. Daniel A. Spielman August 29, 2018

Introduction to Spectral Graph Theory and Graph Clustering

Spectral Clustering on Handwritten Digits Database

Spectral clustering. Two ideal clusters, with two points each. Spectral clustering algorithms

An Algorithmist s Toolkit September 15, Lecture 2

Specral Graph Theory and its Applications September 7, Lecture 2 L G1,2 = 1 1.

Linear algebra and applications to graphs Part 1

HW2 - Due 01/30. Each answer must be mathematically justified. Don t forget your name.

Conductance, the Normalized Laplacian, and Cheeger s Inequality

Vectorized Laplacians for dealing with high-dimensional data sets

Lecture: Local Spectral Methods (3 of 4) 20 An optimization perspective on local spectral methods

Lecture 14: Random Walks, Local Graph Clustering, Linear Programming

1 Review: symmetric matrices, their eigenvalues and eigenvectors

(K2) For sum of the potential differences around any cycle is equal to zero. r uv resistance of {u, v}. [In other words, V ir.]

A NOTE ON THE POINCARÉ AND CHEEGER INEQUALITIES FOR SIMPLE RANDOM WALK ON A CONNECTED GRAPH. John Pike

Laplacian and Random Walks on Graphs

Certifying the Global Optimality of Graph Cuts via Semidefinite Programming: A Theoretic Guarantee for Spectral Clustering

CS168: The Modern Algorithmic Toolbox Lectures #11 and #12: Spectral Graph Theory

Embedding and Spectrum of Graphs

Contents. Preface for the Instructor. Preface for the Student. xvii. Acknowledgments. 1 Vector Spaces 1 1.A R n and C n 2

Powerful tool for sampling from complicated distributions. Many use Markov chains to model events that arise in nature.

Spectral Analysis of Random Walks

Laplacian eigenvalues and optimality: II. The Laplacian of a graph. R. A. Bailey and Peter Cameron

MATH 567: Mathematical Techniques in Data Science Clustering II

Lecture: Local Spectral Methods (2 of 4) 19 Computing spectral ranking with the push procedure

Linear Algebra II Lecture 13

Beyond Scalar Affinities for Network Analysis or Vector Diffusion Maps and the Connection Laplacian

Rings, Paths, and Paley Graphs

Clustering Algorithms for Random and Pseudo-random Structures

Laplacian Integral Graphs with Maximum Degree 3

Algebraic Representation of Networks

Sparsification by Effective Resistance Sampling

Math 443/543 Graph Theory Notes 5: Graphs as matrices, spectral graph theory, and PageRank

Laplacian Eigenmaps for Dimensionality Reduction and Data Representation

Algorithm Design Using Spectral Graph Theory

Graph Sparsification III: Ramanujan Graphs, Lifts, and Interlacing Families

CS 246 Review of Linear Algebra 01/17/19

7. Symmetric Matrices and Quadratic Forms

Spectral Clustering. Zitao Liu

Lecture 17: Cheeger s Inequality and the Sparsest Cut Problem

Network Embedding as Matrix Factorization: Unifying DeepWalk, LINE, PTE, and node2vec

Spectral Graph Theory and You: Matrix Tree Theorem and Centrality Metrics

Consistency of Spectral Clustering

Networks and Their Spectra

Part I: Preliminary Results. Pak K. Chan, Martine Schlag and Jason Zien. Computer Engineering Board of Studies. University of California, Santa Cruz

Spectral Theory of Unsigned and Signed Graphs Applications to Graph Clustering. Some Slides

Cutting Graphs, Personal PageRank and Spilling Paint

Using Laplacian Eigenvalues and Eigenvectors in the Analysis of Frequency Assignment Problems

Spectral radius, symmetric and positive matrices

Graph Embeddings and Laplacian Eigenvalues

Random Matrices: Invertibility, Structure, and Applications

1 Matrix notation and preliminaries from spectral graph theory

Vector Spaces and Linear Transformations

Transcription:

Spectral and Electrical Graph Theory Daniel A. Spielman Dept. of Computer Science Program in Applied Mathematics Yale Unviersity

Outline Spectral Graph Theory: Understand graphs through eigenvectors and eigenvalues of associated matrices. Electrical Graph Theory: Understand graphs through metaphor of resistor networks. Heuristics Algorithms Theorems Intuition

Spectral Graph Theory Graph G =(V,E) Matrix A rows and cols indexed by V Eigenvalues Eigenvectors Av = λv v : V IR

Spectral Graph Theory Graph G =(V,E) 1! 2! 3! 4! Matrix A rows and cols indexed by V A(i, j) =1if(i, j) E Eigenvalues Eigenvectors Av = λv v : V IR 1 0.618 0.618 1 1! 2! 3! 4!

Example: Graph Drawing by the Laplacian

Example: Graph Drawing by the Laplacian 3 1 4 2 5 6 7 8 9

Example: Graph Drawing by the Laplacian 5 3 1 2 4 6 7 L(i, j) = 1 if (i, j) E deg(i) if i = j 0 otherwise 8 9

Example: Graph Drawing by the Laplacian 5 3 1 2 4 6 7 L(i, j) = 1 if (i, j) E deg(i) if i = j 0 otherwise 8 9 Eigenvalues 0, 1.53, 1.53, 3, 3.76, 3.76, 5, 5.7, 5.7 Let x, y IR V span eigenspace of eigenvalue 1.53

Example: Graph Drawing by the Laplacian 9 5 2 3 1 6 4 8 7 Plot vertex i at (x(i),y(i)) Draw edges as straight lines

Laplacian: natural quadratic form on graphs where D is diagonal matrix of degrees 1! 2! 3! 4!

Laplacian: fast facts zero is an eigenvalue Connected if and only if λ 2 > 0 Fiedler ( 73) called algebraic connectivity of a graph The further from 0, the more connected.

Drawing a graph in the line (Hall 70) map minimize trivial solution: Solution So, require x 1, x =1 Atkins, Boman, Hendrickson 97: Gives correct drawing for graphs like

Courant-Fischer definition of eigvals/vecs

Courant-Fischer definition of eigvals/vecs (here )

Courant-Fischer definition of eigvals/vecs (here )

Drawing a graph in the plane (Hall 70) map minimize

Drawing a graph in the plane (Hall 70) map minimize trivial solution: So, require x 1, x 2 1

Drawing a graph in the plane (Hall 70) map minimize trivial solution: So, require x 1, x 2 1 diagonal solution: So, require x 1 x 2 Solution up to rotation

A Graph

Drawing of the graph using v 2, v 3 Plot vertex i at

The Airfoil Graph, original coordinates

The Airfoil Graph, spectral coordinates

The Airfoil Graph, spectral coordinates

Spectral drawing of Streets in Rome

Spectral drawing of Erdos graph: edge between co-authors of papers

Dodecahedron Best embedded by first three eigenvectors

Intuition: Graphs as Spring Networks edges - > ideal linear springs weights - > spring constants (k) Physics: when stretched to length x, force is kx poten9al energy is kx 2 /2 Nail down some ver9ces, let rest se;le

Intuition: Graphs as Spring Networks Nail down some ver9ces, let rest se;le i Physics: minimizes total poten9al energy (i,j) E x(i) (x(i) x(j)) 2 = x T Lx subject to boundary constraints (nails)

Intuition: Graphs as Spring Networks Nail down some ver9ces, let rest se;le x(i) i Physics: energy minimized when non- fixed ver9ces are averages of neighbors x(i) = 1 d i (i,j) E x(j)

Tutte s Theorem 63 If nail down a face of a planar 3- connected graph, get a planar embedding!

Spectral graph drawing: Tutte justification Condition for eigenvector Gives λ small says x(i) = 1 d i λ x(i) (i,j) E x(j) for all near average of neighbors i

Spectral graph drawing: Tutte justification Condition for eigenvector Gives λ small says x(i) = 1 d i λ x(i) (i,j) E x(j) for all i near average of neighbors For planar graphs: λ 2 8d/n [S-Teng 96] λ 3 O(d/n) [Kelner-Lee-Price-Teng 09]

Small eigenvalues are not enough Plot vertex i at (v 3 (i),v 4 (i))

Graph Partitioning

Spectral Graph Partitioning [Donath-Hoffman 72, Barnes 82, Hagen-Kahng 92] S = {i : v 2 (i) t} for some t

Measuring Partition Quality: Conductance S Φ(S) = # edges leaving S sum of degrees in S For deg(s) deg(v )/2

Spectral Image Segmentation (Shi-Malik 00)

Spectral Image Segmentation (Shi-Malik 00)

Spectral Image Segmentation (Shi-Malik 00)

Spectral Image Segmentation (Shi-Malik 00)

Spectral Image Segmentation (Shi-Malik 00) edge weight

The second eigenvector

Second eigenvector cut

Third Eigenvector

Fourth Eigenvector

Cheeger s Inequality [Cheeger 70] [Alon-Milman 85, Jerrum-Sinclair 89, Diaconis-Stroock 91] For Normalized Laplacian: L = D 1/2 LD 1/2 λ 2 /2 min S Φ(S) 2λ 2 And, is a spectral cut for which Φ(S) 2λ 2

McSherry s Analysis of Spectral Partitioning p p q S T Divide vertices into S and T Place edges at random with Pr [S-S edge] = p Pr [T-T edge] = p Pr [S-T edge] = q q<p

McSherry s Analysis of Spectral Partitioning p q p S T E [ A ]= p q } S q p } T S T

McSherry s Analysis of Spectral Partitioning E [ A ]= p q } S q p } T S T v 2 (E [ L ]) is positive const on S, negative const on T View A as perturbation of E [ A ] and L as perturbation of E [ L ]

McSherry s Analysis of Spectral Partitioning v 2 (E [ L ]) is negative const on S, positive const on T View A as perturbation of E [ A ] and L as perturbation of E [ L ] Random Matrix Theory [Füredi-Komlós 81, Vu 07] With high probability L E [ L ] small Perturbation Theory for Eigenvectors implies v 2 (L) v 2 (E [ L ])

Spectral graph coloring from high eigenvectors Embedding of dodecahedron by 19 th and 20 th eigvecs.

Spectral graph coloring from high eigenvectors p p p p p Coloring 3-colorable random graphs [Alon-Kahale 97]

Independent Sets S is independent if are no edges between vertices in S

Independent Sets S is independent if are no edges between vertices in S Hoffman s Bound: if every vertex has degree d S n 1 d λ n

Networks of Resistors Ohm s laws gives i = v/r In general, i = L G v with w (u,v) =1/r (u,v) Minimize dissipated energy v T L G v 1V 0V

Networks of Resistors Ohm s laws gives i = v/r In general, i = L G v with w a,b =1/r a,b Minimize dissipated energy By solving Laplacian v T L G v 0.5V 0.5V 1V 0V 0.375V 0.625V

Electrical Graph Theory Considers flows in graphs Allows comparisons of graphs, and embedding of one graph within another. Relative Spectral Graph Theory

Effective Resistance Resistance of entire network, measured between a and b. Ohm s law: r = v/i R eff (a, b) = 1/(current flow at one volt) 1V a b 0.53V 0.27V 0V 0.2V 0.33V

Effective Resistance Resistance of entire network, measured between a and b. Ohm s law: r = v/i R eff (a, b) = 1/(current flow at one volt) = voltage difference to flow 1 unit

Effective Resistance R eff (a, b) = voltage difference to flow 1 unit Vector of one unit flow has 1 at a, -1 at b, 0 elsewhere i a,b = e a e b Voltages required by this flow are given by v a,b = L 1 G i a,b

Effective Resistance R eff (a, b) = voltage difference of unit flow Voltages required by unit flow are given by Voltage difference is v a,b = L 1 G i a,b v a,b (a) v a,b (b) =(e a e b ) T v a,b =(e a e b ) T L + G (e a e b )

Effective Resistance Distance Effective resistance is a distance Lower when are more short paths Equivalent to commute time distance: expected time for a random walk from a to reach b and then return to a. See Doyle and Snell, Random Walks and Electrical Networks

Relative Spectral Graph Theory For two connected graphs G and H with the same vertex set, consider L G L 1 H work orthogonal to nullspace or use pseudoinverse Allows one to compare G and H

Relative Spectral Graph Theory For two connected graphs G and H, consider L G L 1 H = I n 1 if and only if G = H

Relative Spectral Graph Theory For two connected graphs G and H, consider L G L 1 H I n 1 if and only if G H

Relative Spectral Graph Theory For two connected graphs G and H, consider 1 1+ eigs(l GL 1 H ) 1+ if and only if for all x IR V 1 1+ xt L G x x T L H x 1+

Relative Spectral Graph Theory In particular, for x T L G x = 1 1+ xt L G x x T L H x 1+ 0 1 S 0 1 0 1 (a,b) E x(a) = 1 a S 0 a S 0 (x(a) x(b)) 2 = E(S, V S)

Relative Spectral Graph Theory 1 1+ xt L G x x T L H x 1+ For all S V 1 1+ E G(S, V S) E H (S, V S) 1+

Expanders Approximate Complete Graphs Expanders: d-regular graphs on n vertices high conductance random walks mix quickly weak expanders: eigenvalues bounded from 0 strong expanders: all eigenvalues near d

Expanders Approximate Complete Graphs For G the complete graph on n vertices. all non- zero eigenvalues of L G are n. For, x 1 x =1 x T L G x = n

Expanders Approximate Complete Graphs For G the complete graph on n vertices. all non- zero eigenvalues of L G are n. For, x 1 x =1 x T L G x = n For H a d- regular strong expander, all non- zero eigenvalues of L H are close to d. For, x 1 x =1 x T L H x [λ 2, λ n ] d

Expanders Approximate Complete Graphs For G the complete graph on n vertices. all non- zero eigenvalues of L G are n. For, x 1 x =1 x T L G x = n For H a d- regular strong expander, all non- zero eigenvalues of L H are close to d. For, x 1 n d H x =1 x T L H x d is a good approximation of G

Sparse approximations of every graph 1 1+ xt L G x x T L H x 1+ For every G, there is an H with (2 + ) 2 n/ 2 edges [Batson-S-Srivastava] Can find an H with in nearly-linear time. O(n log n/ 2 ) edges [S-Srivastava]

Sparsification by Random Sampling [S- Srivastava] Include edge (u, v) with probability p u,v w u,v R eff (u, v) If include edge, give weight w u,v /p u,v Analyze by Rudelson s concentration of random sums of rank-1 matrices

Approximating a graph by a tree Alon, Karp, Peleg, West 91: measure the stretch

Approximating a graph by a tree Alon, Karp, Peleg, West 91: measure the stretch T

Approximating a graph by a tree Alon, Karp, Peleg, West 91: measure the stretch i 3 j T

Approximating a graph by a tree Alon, Karp, Peleg, West 91: measure the stretch 3 1 1 1 6 1 T 1 1 1 1 1 5

Low-Stretch Spanning Trees For every G there is a T with stretch T (G) m 1+o(1) (Alon- Karp- Peleg- West 91) where m = E stretch T (G) O(m log m log 2 log m) (Elkin- Emek- S- Teng 04, Abraham- Bartal- Neiman 08) Conjecture: stretch T (G) m log 2 m

Algebraic characterization of stretch [S- Woo 09] stretch T (G) = Trace[L G L 1 T ]

Algebraic characterization of stretch [S- Woo 09] stretch T (G) = Trace[L G L 1 T ] Resistances in series sum In trees, resistance is distance. 1 1 v : 0 1 a 2 2 T b 3 4 4 4

Algebraic characterization of stretch [S- Woo 09] stretch T (G) = Trace[L G L 1 x T L G x = (x(a) x(b)) 2 (a,b) E = ((e a e b ) T x) 2 (a,b) E = x T (e a e b )(e a e b ) T x (a,b) E = x T ( (e a e b )(e a e b ) T )x (a,b) E T ]

Algebraic characterization of stretch [S- Woo 09] stretch T (G) = Trace[L G L 1 T ] Trace[L G L 1 T ]= (a,b) E = (a,b) E = (a,b) E Trace[(e a e b )(e a e b ) T L 1 T ] Trace[(e a e b ) T L 1 T (e a e b )] (e a e b ) T L 1 T (e a e b )

Algebraic characterization of stretch [S- Woo 09] (a,b) E stretch T (G) = Trace[L G L 1 T ] (e a e b ) T L 1 T (e a e b )= (a,b) E = (a,b) E R eff (a, b) stretch T (a, b)

Notable Things I ve left out Behavior under graph transformations Graph Isomorphism Random Walks and Diffusion PageRank and Hits Matrix-Tree Theorem Special Graphs (Cayley, Strongly-Regular, etc.) Diameter bounds Colin de Verdière invariant Discretizations of Manifolds

The next two talks Tomorrow: Solving equations in Laplacians in nearly-linear time. Preconditioning Sparsification Low-Stretch Spanning Trees Local graph partitioning

The next two talks Thursday: Existence of sparse approximations. A theorem in linear algebra and some of its connections.