Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian

Similar documents
Lecture 1: From Data to Graphs, Weighted Graphs and Graph Laplacian

Lecture 9: Laplacian Eigenmaps

Lecture 4: Phase Transition in Random Graphs

Lecture 7: Convex Optimizations

Graph fundamentals. Matrices associated with a graph

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

A lower bound for the Laplacian eigenvalues of a graph proof of a conjecture by Guo

Spectra of Adjacency and Laplacian Matrices

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

Lecture 13 Spectral Graph Algorithms

MATH 829: Introduction to Data Mining and Analysis Clustering II

18.312: Algebraic Combinatorics Lionel Levine. Lecture 19

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

Linear algebra and applications to graphs Part 1

Lecture 1 and 2: Introduction and Graph theory basics. Spring EE 194, Networked estimation and control (Prof. Khan) January 23, 2012

Machine Learning for Data Science (CS4786) Lecture 11

Econ Slides from Lecture 7

Data Analysis and Manifold Learning Lecture 7: Spectral Clustering

MATH 567: Mathematical Techniques in Data Science Clustering II

Basic graph theory 18.S995 - L26.

An Algorithmist s Toolkit September 10, Lecture 1

Determinant of the distance matrix of a tree with matrix weights

U.C. Berkeley Better-than-Worst-Case Analysis Handout 3 Luca Trevisan May 24, 2018

Chapter 6. Eigenvalues. Josef Leydold Mathematical Methods WS 2018/19 6 Eigenvalues 1 / 45

Laplacians of Graphs, Spectra and Laplacian polynomials

COMPSCI 514: Algorithms for Data Science

Lecture 10 - Eigenvalues problem

Spectral Clustering on Handwritten Digits Database

Ma/CS 6b Class 20: Spectral Graph Theory

Lecture 12 : Graph Laplacians and Cheeger s Inequality

An Algorithmist s Toolkit September 15, Lecture 2

MATH 423 Linear Algebra II Lecture 20: Geometry of linear transformations. Eigenvalues and eigenvectors. Characteristic polynomial.

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

Lecture 10: October 27, 2016

Numerical Linear Algebra Homework Assignment - Week 2

U.C. Berkeley CS294: Spectral Methods and Expanders Handout 11 Luca Trevisan February 29, 2016

Energies of Graphs and Matrices

Eigenvalues of 2-edge-coverings

Introducing the Laplacian

MATH 423 Linear Algebra II Lecture 33: Diagonalization of normal operators.

17.1 Directed Graphs, Undirected Graphs, Incidence Matrices, Adjacency Matrices, Weighted Graphs

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

ORIE 4741: Learning with Big Messy Data. Spectral Graph Theory

Lecture 7. 1 Normalized Adjacency and Laplacian Matrices

4. Determinants.

Introduction to Spectral Graph Theory and Graph Clustering

6.207/14.15: Networks Lecture 7: Search on Networks: Navigation and Web Search

Applied Mathematics 205. Unit V: Eigenvalue Problems. Lecturer: Dr. David Knezevic

Quadratic forms. Here. Thus symmetric matrices are diagonalizable, and the diagonalization can be performed by means of an orthogonal matrix.

Algebraic Representation of Networks

This section is an introduction to the basic themes of the course.

Ma/CS 6b Class 20: Spectral Graph Theory

SPECTRUM OF (k, r) - REGULAR HYPERGRAPH

Diffusion and random walks on graphs

Data Mining and Analysis: Fundamental Concepts and Algorithms

1 Review: symmetric matrices, their eigenvalues and eigenvectors

Basic Calculus Review

Math 108b: Notes on the Spectral Theorem

MATH 304 Linear Algebra Lecture 23: Diagonalization. Review for Test 2.

Lecture 13: Spectral Graph Theory

Spectral Bounds on the Chromatic Number

Functional Analysis Review

Eigenvalues, random walks and Ramanujan graphs

. The following is a 3 3 orthogonal matrix: 2/3 1/3 2/3 2/3 2/3 1/3 1/3 2/3 2/3

Summary: A Random Walks View of Spectral Segmentation, by Marina Meila (University of Washington) and Jianbo Shi (Carnegie Mellon University)

Lecture 1 and 2: Random Spanning Trees

Kernels of Directed Graph Laplacians. J. S. Caughman and J.J.P. Veerman

Today: eigenvalue sensitivity, eigenvalue algorithms Reminder: midterm starts today

Math Matrix Algebra

1 Directional Derivatives and Differentiability

A New Spectral Technique Using Normalized Adjacency Matrices for Graph Matching 1

ELA A LOWER BOUND FOR THE SECOND LARGEST LAPLACIAN EIGENVALUE OF WEIGHTED GRAPHS

Laplacians of Graphs, Spectra and Laplacian polynomials

Numerical Methods I Eigenvalue Problems

1 Last time: least-squares problems

Strongly Regular Graphs, part 1

Notes on Elementary Spectral Graph Theory Applications to Graph Clustering Using Normalized Cuts

ORIE 6334 Spectral Graph Theory September 8, Lecture 6. In order to do the first proof, we need to use the following fact.

Lecture Notes: Eigenvalues and Eigenvectors. 1 Definitions. 2 Finding All Eigenvalues

Notes on Elementary Spectral Graph Theory Applications to Graph Clustering

Laplacian and Random Walks on Graphs

First, we review some important facts on the location of eigenvalues of matrices.

Eigenvalues and edge-connectivity of regular graphs

Computing Eigenvalues and/or Eigenvectors;Part 1, Generalities and symmetric matrices

Spectral Clustering on Handwritten Digits Database Mid-Year Pr

Quick Tour of Linear Algebra and Graph Theory

SHARP BOUNDS FOR THE GENERAL RANDIĆ INDEX R 1 OF A GRAPH

AMS526: Numerical Analysis I (Numerical Linear Algebra)

Laplacian for Graphs Exercises 1.

EXERCISES ON DETERMINANTS, EIGENVALUES AND EIGENVECTORS. 1. Determinants

Eigenvalues of Random Power Law Graphs (DRAFT)

Adjacency Matrix of Product of Graphs

BOUNDS FOR LAPLACIAN SPECTRAL RADIUS OF THE COMPLETE BIPARTITE GRAPH

LECTURE NOTE #11 PROF. ALAN YUILLE

Quadrature for the Finite Free Convolution

EIGENVECTOR NORMS MATTER IN SPECTRAL GRAPH THEORY

MAT 1332: CALCULUS FOR LIFE SCIENCES. Contents. 1. Review: Linear Algebra II Vectors and matrices Definition. 1.2.

INTRODUCTION TO LIE ALGEBRAS. LECTURE 2.

TOPOLOGY FOR GLOBAL AVERAGE CONSENSUS. Soummya Kar and José M. F. Moura

A Faber-Krahn type inequality for regular trees

Transcription:

Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian Radu Balan January 31, 2017

G = (V, E) An undirected graph G is given by two pieces of information: a set of vertices V and a set of edges E, G = (V, E).

G = (V, E) An undirected graph G is given by two pieces of information: a set of vertices V and a set of edges E, G = (V, E).

G = (V, E) An undirected graph G is given by two pieces of information: a set of vertices V and a set of edges E, G = (V, E). V =? E =?

G = (V, E)

G = (V, E) V = {1, 2, 3, 4, 5, 6, 7, 8, 9}

G = (V, E) V = {1, 2, 3, 4, 5, 6, 7, 8, 9} E = {(1, 2), (2, 4), (4, 7), (6, 7), (1, 5), (5, 6), (5, 7), (2, 8), (8, 9)}

G = (V, E) V = {1, 2, 3, 4, 5, 6, 7, 8, 9} E = {(1, 2), (2, 4), (4, 7), (6, 7), (1, 5), (5, 6), (5, 7), (2, 8), (8, 9)} n = 9 vertices m = 9 edges

G = (V, E) In an undirected graph, edges are not oriented. Thus (1, 2) (2, 1) in the example.

G = (V, E) In an undirected graph, edges are not oriented. Thus (1, 2) (2, 1) in the example. Other types of graphs: Directed Graphs: In a directed graph, edges are oriented. In general (i, j) (j, i). Weighted Graphs: Each edge has an associated weight. A weighted graph is defined by a triple (V, E, w), where w : E R is a weight function.

G = (V, E) In an undirected graph, edges are not oriented. Thus (1, 2) (2, 1) in the example. Other types of graphs: Directed Graphs: In a directed graph, edges are oriented. In general (i, j) (j, i). Weighted Graphs: Each edge has an associated weight. A weighted graph is defined by a triple (V, E, w), where w : E R is a weight function.

Paths Concept: A path is a sequence of edges where the right vertex of one edge coincides with the left vertex of the following edge. Example:

Paths Concept: A path is a sequence of edges where the right vertex of one edge coincides with the left vertex of the following edge. Example: {(1, 2), (2, 4), (4, 7), (7, 5)} = = {(1, 2), (2, 4), (4, 7), (5, 7)}

Paths Concept: A path is a sequence of edges where the right vertex of one edge coincides with the left vertex of the following edge. Example: {(1, 2), (2, 4), (4, 7), (7, 5)} = = {(1, 2), (2, 4), (4, 7), (5, 7)}

Graph Attributes Graph Attributes (Properties): Connected Graphs: Graphs where any two distinct vertices can be connected through a path.

Graph Attributes Graph Attributes (Properties): Connected Graphs: Graphs where any two distinct vertices can be connected through a path. Complete (or Totally Connected) Graphs: Graphs where any two distinct vertices are connected by an edge.

Graph Attributes Graph Attributes (Properties): Connected Graphs: Graphs where any two distinct vertices can be connected through a path. Complete (or Totally Connected) Graphs: Graphs where any two distinct vertices are connected by an edge. ( ) n A complete graph with n vertices has m = = n(n 1) 2 2 edges.

Graph Attributes Example:

Graph Attributes Example: This graph is not connected. It is not complete. It is the union of two connected graphs.

Metric Distance between vertices: For two vertices x, y, the distance d(x, y) is the length of the shortest path connecting x and y. If x = y then d(x, x) = 0.

Metric Distance between vertices: For two vertices x, y, the distance d(x, y) is the length of the shortest path connecting x and y. If x = y then d(x, x) = 0. In a connected graph the distance between any two vertices is finite. In a complete graph the distance between any two distinct vertices is 1.

Metric Distance between vertices: For two vertices x, y, the distance d(x, y) is the length of the shortest path connecting x and y. If x = y then d(x, x) = 0. In a connected graph the distance between any two vertices is finite. In a complete graph the distance between any two distinct vertices is 1. The converses are also true: 1 If x, y E, d(x, y) < then (V, E) is connected. 2 If x y E, d(x, y) = 1 then (V, E) is complete.

Metric Graph diameter: The diameter of a graph G = (V, E) is the largest distance between two vertices of the graph: D(G) = max d(x, y) x,y V

Metric Graph diameter: The diameter of a graph G = (V, E) is the largest distance between two vertices of the graph: Example: D(G) = max d(x, y) x,y V

Metric Graph diameter: The diameter of a graph G = (V, E) is the largest distance between two vertices of the graph: Example: D(G) = max d(x, y) x,y V D = 5 = d(6, 9) = d(3, 9)

The Adjacency Matrix For a graph G = (V, E) the adjacency matrix is the n n matrix A defined by: { 1 if (i, j) E A i,j = 0 otherwise

The Adjacency Matrix For a graph G = (V, E) the adjacency matrix is the n n matrix A defined by: { 1 if (i, j) E A i,j = 0 otherwise Example:

The Adjacency Matrix For a graph G = (V, E) the adjacency matrix is the n n matrix A defined by: { 1 if (i, j) E A i,j = 0 otherwise Example: A = 0 1 0 0 1 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 1 0 0 1 0

The Adjacency Matrix For undirected graphs the adjacency matrix is always symmetric: A T = A For directed graphs the adjacency matrix may not be symmetric.

The Adjacency Matrix For undirected graphs the adjacency matrix is always symmetric: A T = A For directed graphs the adjacency matrix may not be symmetric. For weighted graphs G = (V, E, W ), the weight matrix W is simply given by { wi,j if (i, j) E W i,j = 0 otherwise

Vertex Degree d(v) For an undirected graph G = (V, E), let d(v) denote the number of edges at vertex v V. The number d(v) is called the degree (or valency) of vertex v.

Vertex Degree d(v) For an undirected graph G = (V, E), let d(v) denote the number of edges at vertex v V. The number d(v) is called the degree (or valency) of vertex v. Example:

Vertex Degree d(v) For an undirected graph G = (V, E), let d(v) denote the number of edges at vertex v V. The number d(v) is called the degree (or valency) of vertex v. Example: d(v) = 2, v

Vertex Degree d(v) For an undirected graph G = (V, E), let d(v) denote the number of edges at vertex v V. The number d(v) is called the degree (or valency) of vertex v. Example: d(v) = 2, v Note: d(i) = 5 j=1 A i,j

Vertex Degree Matrix D For an undirected graph G = (V, E) of n vertices, we denote by D the n n diagonal matrix of degrees: D i,i = d(i).

Vertex Degree Matrix D For an undirected graph G = (V, E) of n vertices, we denote by D the n n diagonal matrix of degrees: D i,i = d(i). Example:

Vertex Degree Matrix D For an undirected graph G = (V, E) of n vertices, we denote by D the n n diagonal matrix of degrees: D i,i = d(i). Example: A = 2 0 0 0 0 0 2 0 0 0 0 0 2 0 0 0 0 0 2 0 0 0 0 0 2

Graph Laplacian For a graph G = (V, E) the graph Laplacian is the n n symmetric matrix defined by: = D A Example:

Graph Laplacian For a graph G = (V, E) the graph Laplacian is the n n symmetric matrix defined by: = D A Example: = 2 1 0 0 1 1 2 1 0 0 0 1 2 1 0 0 0 1 2 1 1 0 0 1 2

Graph Laplacian Example

Graph Laplacian Example = 2 1 0 0 1 0 0 0 0 1 3 0 1 0 0 0 1 0 0 0 1 0 1 0 0 0 0 0 1 0 2 0 0 1 0 0 1 0 1 0 4 1 1 0 0 0 0 0 0 1 2 1 0 0 0 0 0 1 1 1 3 0 0 0 1 0 0 0 0 0 2 1 0 0 0 0 0 0 0 1 1

Normalized Laplacians Normalized Laplacian: (using pseudo-inverses) = D 1/2 D 1/2 = I D 1/2 AD 1/2 1 if i = j and d i > 0 i,j = 1 if (i, j) E d(i)d(j) 0 otherwise

Normalized Laplacians Normalized Laplacian: (using pseudo-inverses) = D 1/2 D 1/2 = I D 1/2 AD 1/2 1 if i = j and d i > 0 i,j = 1 if (i, j) E d(i)d(j) 0 otherwise Normalized Asymmetric Laplacian: L = D 1 = I D 1 A 1 if i = j and d i > 0 L i,j = 1 d(i) if (i, j) E 0 otherwise

Normalized Laplacians Normalized Laplacian: (using pseudo-inverses) = D 1/2 D 1/2 = I D 1/2 AD 1/2 1 if i = j and d i > 0 i,j = 1 if (i, j) E d(i)d(j) 0 otherwise Normalized Asymmetric Laplacian: Note: L = D 1 = I D 1 A 1 if i = j and d i > 0 L i,j = 1 d(i) if (i, j) E 0 otherwise D 1 = I AD 1 = L T ; (D 1 ) kk = (D 1/2 ) kk = 0 if d(k) = 0

Normalized Laplacians Example Example:

Normalized Laplacians Example Example: = 1 0.5 0 0 0.5 0.5 1 0.5 0 0 0 0.5 1 0.5 0 0 0 0.5 1 0.5 0.5 0 0 0.5 1

Spectral Analysis Eigenvalues and Eigenvectors Recall the eigenvalues of a matrix T are the zeros of the characteristic polynomial: p T (z) = det(zi T ) = 0. There are exactly n eigenvalues (including multiplicities) for a n n matrix T. The set of eigenvalues is calles its spectrum.

Spectral Analysis Eigenvalues and Eigenvectors Recall the eigenvalues of a matrix T are the zeros of the characteristic polynomial: p T (z) = det(zi T ) = 0. There are exactly n eigenvalues (including multiplicities) for a n n matrix T. The set of eigenvalues is calles its spectrum. If λ is an eigenvalue of T, then its associated eigenvector is the non-zero n-vector x such that Tx = λx.

Spectral Analysis Eigenvalues and Eigenvectors Recall the eigenvalues of a matrix T are the zeros of the characteristic polynomial: p T (z) = det(zi T ) = 0. There are exactly n eigenvalues (including multiplicities) for a n n matrix T. The set of eigenvalues is calles its spectrum. If λ is an eigenvalue of T, then its associated eigenvector is the non-zero n-vector x such that Tx = λx. Remark. Since det(a 1 A 2 ) = det(a 1 )det(a 2 ) and L = D 1/2 D 1/2 it follows that eigs( ) = eigs(l) = eigs(l T ).

Spectral Analysis Rayleigh Quotient Recall the following result: Theorem Assume T is a real symmetric n n matrix. Then: 1 All eigenvalues of T are real numbers. 2 There are n eigenvectors that can be normalized to form an orthonormal basis for R n. 3 The largest eigenvalue λ max and the smallest eigenvalue λ min satisfy λ max = max x 0 Tx, x x, x Tx, x, λ min = min x 0 x, x

Spectral Analysis Rayleigh Quotient For two symmetric matrices T, S we say T S if Tx, x Sx, x for all x R n.

Spectral Analysis Rayleigh Quotient For two symmetric matrices T, S we say T S if Tx, x Sx, x for all x R n. Consequence 3 can be rewritten: λ min I T λ max I

Spectral Analysis Rayleigh Quotient For two symmetric matrices T, S we say T S if Tx, x Sx, x for all x R n. Consequence 3 can be rewritten: λ min I T λ max I In particular we say T is positive semidefinite T 0 if Tx, x 0 for every x. It follows that T is positive semidefinite if and only if every eigenvalue of T is positive semidefinite (i.e. non-negative).

References B. Bollobás, Graph Theory. An Introductory Course, Springer-Verlag 1979. 99(25), 15879 15882 (2002). F. Chung, L. Lu, The average distances in random graphs with given expected degrees, Proc. Nat.Acad.Sci. R. Diestel, Graph Theory, 3rd Edition, Springer-Verlag 2005. P. Erdös, A. Rényi, On The Evolution of Random Graphs G. Grimmett, Probability on Graphs. Random Processes on Graphs and Lattices, Cambridge Press 2010. J. Leskovec, J. Kleinberg, C. Faloutsos, Graph Evolution: Densification and Shrinking Diameters, ACM Trans. on Knowl.Disc.Data, 1(1) 2007.