Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions...

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

Transcript of Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions...

Page 1: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian

Radu Balan

January 31, 2017

Page 2: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsG = (V, E)

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

V =?E =?

Radu Balan () Graphs 1

Page 3: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsG = (V, E)

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

V =?E =?

Radu Balan () Graphs 1

Page 4: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsG = (V, E)

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

V =?E =?

Radu Balan () Graphs 1

Page 5: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsG = (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

Radu Balan () Graphs 1

Page 6: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsG = (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

Radu Balan () Graphs 1

Page 7: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsG = (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

Radu Balan () Graphs 1

Page 8: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsG = (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

Radu Balan () Graphs 1

Page 9: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsG = (V, E)

In an undirected graph, edges are not oriented. Thus (1, 2) ∼ (2, 1) in theexample.

Other types of graphs:Directed Graphs: In a directedgraph, edges are oriented. Ingeneral (i , j) 6∼ (j , i).Weighted Graphs: Each edgehas an associated weight. Aweighted graph is defined by atriple (V, E ,w), wherew : E → R is a weight function.

Radu Balan () Graphs 1

Page 10: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsG = (V, E)

In an undirected graph, edges are not oriented. Thus (1, 2) ∼ (2, 1) in theexample. Other types of graphs:

Directed Graphs: In a directedgraph, edges are oriented. Ingeneral (i , j) 6∼ (j , i).Weighted Graphs: Each edgehas an associated weight. Aweighted graph is defined by atriple (V, E ,w), wherew : E → R is a weight function.

Radu Balan () Graphs 1

Page 11: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsG = (V, E)

In an undirected graph, edges are not oriented. Thus (1, 2) ∼ (2, 1) in theexample. Other types of graphs:

Directed Graphs: In a directedgraph, edges are oriented. Ingeneral (i , j) 6∼ (j , i).Weighted Graphs: Each edgehas an associated weight. Aweighted graph is defined by atriple (V, E ,w), wherew : E → R is a weight function.

Radu Balan () Graphs 1

Page 12: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsPaths

Concept: A path is a sequence of edges where the right vertex of one edgecoincides 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)}

Radu Balan () Graphs 1

Page 13: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsPaths

Concept: A path is a sequence of edges where the right vertex of one edgecoincides 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)}

Radu Balan () Graphs 1

Page 14: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsPaths

Concept: A path is a sequence of edges where the right vertex of one edgecoincides 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)}

Radu Balan () Graphs 1

Page 15: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsGraph Attributes

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

Complete (or Totally Connected) Graphs: Graphs where any twodistinct vertices are connected by an edge.

A complete graph with n vertices has m =(

n2

)= n(n−1)

2 edges.

Radu Balan () Graphs 1

Page 16: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsGraph Attributes

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

A complete graph with n vertices has m =(

n2

)= n(n−1)

2 edges.

Radu Balan () Graphs 1

Page 17: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsGraph Attributes

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

A complete graph with n vertices has m =(

n2

)= n(n−1)

2 edges.

Radu Balan () Graphs 1

Page 18: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsGraph Attributes

Example:

This graph is notconnected.It is not complete.It is the union of twoconnected graphs.

Radu Balan () Graphs 1

Page 19: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsGraph Attributes

Example:

This graph is notconnected.It is not complete.It is the union of twoconnected graphs.

Radu Balan () Graphs 1

Page 20: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsMetric

Distance between vertices: For two vertices x , y , the distance d(x , y) is thelength 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 6= y ∈ E , d(x , y) = 1 then (V, E) is complete.

Radu Balan () Graphs 1

Page 21: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsMetric

Distance between vertices: For two vertices x , y , the distance d(x , y) is thelength 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 6= y ∈ E , d(x , y) = 1 then (V, E) is complete.

Radu Balan () Graphs 1

Page 22: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsMetric

Distance between vertices: For two vertices x , y , the distance d(x , y) is thelength 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 6= y ∈ E , d(x , y) = 1 then (V, E) is complete.

Radu Balan () Graphs 1

Page 23: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsMetric

Graph diameter: The diameter of a graph G = (V, E) is the largestdistance between two vertices of the graph:

D(G) = maxx ,y∈V

d(x , y)

Example:

D = 5 = d(6, 9) = d(3, 9)

Radu Balan () Graphs 1

Page 24: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsMetric

Graph diameter: The diameter of a graph G = (V, E) is the largestdistance between two vertices of the graph:

D(G) = maxx ,y∈V

d(x , y)

Example:

D = 5 = d(6, 9) = d(3, 9)

Radu Balan () Graphs 1

Page 25: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsMetric

Graph diameter: The diameter of a graph G = (V, E) is the largestdistance between two vertices of the graph:

D(G) = maxx ,y∈V

d(x , y)

Example:

D = 5 = d(6, 9) = d(3, 9)

Radu Balan () Graphs 1

Page 26: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsThe Adjacency Matrix

For a graph G = (V, E) the adjacency matrix is the n× n matrix A definedby:

Ai ,j ={

1 if (i , j) ∈ E0 otherwise

Example:

A =

0 1 0 0 11 0 1 0 00 1 0 1 00 0 1 0 11 0 0 1 0

Radu Balan () Graphs 1

Page 27: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsThe Adjacency Matrix

For a graph G = (V, E) the adjacency matrix is the n× n matrix A definedby:

Ai ,j ={

1 if (i , j) ∈ E0 otherwise

Example:

A =

0 1 0 0 11 0 1 0 00 1 0 1 00 0 1 0 11 0 0 1 0

Radu Balan () Graphs 1

Page 28: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsThe Adjacency Matrix

For a graph G = (V, E) the adjacency matrix is the n× n matrix A definedby:

Ai ,j ={

1 if (i , j) ∈ E0 otherwise

Example:

A =

0 1 0 0 11 0 1 0 00 1 0 1 00 0 1 0 11 0 0 1 0

Radu Balan () Graphs 1

Page 29: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsThe Adjacency Matrix

For undirected graphs the adjacency matrix is always symmetric:

AT = A

For directed graphs the adjacency matrix may not be symmetric.

For weighted graphs G = (V, E ,W ), the weight matrix W is simply givenby

Wi ,j ={

wi ,j if (i , j) ∈ E0 otherwise

Radu Balan () Graphs 1

Page 30: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

DefinitionsThe Adjacency Matrix

For undirected graphs the adjacency matrix is always symmetric:

AT = A

For directed graphs the adjacency matrix may not be symmetric.For weighted graphs G = (V, E ,W ), the weight matrix W is simply givenby

Wi ,j ={

wi ,j if (i , j) ∈ E0 otherwise

Radu Balan () Graphs 1

Page 31: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Vertex Degreed(v)

For an undirected graph G = (V, E), let d(v) denote the number of edgesat vertex v ∈ V. The number d(v) is called the degree (or valency) ofvertex v .

Example:

d(v) = 2 , ∀v

Note: d(i) =∑5

j=1 Ai ,j

Radu Balan () Graphs 1

Page 32: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Vertex Degreed(v)

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

d(v) = 2 , ∀v

Note: d(i) =∑5

j=1 Ai ,j

Radu Balan () Graphs 1

Page 33: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Vertex Degreed(v)

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

d(v) = 2 , ∀v

Note: d(i) =∑5

j=1 Ai ,j

Radu Balan () Graphs 1

Page 34: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Vertex Degreed(v)

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

d(v) = 2 , ∀v

Note: d(i) =∑5

j=1 Ai ,j

Radu Balan () Graphs 1

Page 35: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Vertex DegreeMatrix D

For an undirected graph G = (V, E) of n vertices, we denote by D then × n diagonal matrix of degrees: Di ,i = d(i).

Example:

A =

2 0 0 0 00 2 0 0 00 0 2 0 00 0 0 2 00 0 0 0 2

Radu Balan () Graphs 1

Page 36: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Vertex DegreeMatrix D

For an undirected graph G = (V, E) of n vertices, we denote by D then × n diagonal matrix of degrees: Di ,i = d(i). Example:

A =

2 0 0 0 00 2 0 0 00 0 2 0 00 0 0 2 00 0 0 0 2

Radu Balan () Graphs 1

Page 37: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Vertex DegreeMatrix D

For an undirected graph G = (V, E) of n vertices, we denote by D then × n diagonal matrix of degrees: Di ,i = d(i). Example:

A =

2 0 0 0 00 2 0 0 00 0 2 0 00 0 0 2 00 0 0 0 2

Radu Balan () Graphs 1

Page 38: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

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 00 −1 2 −1 00 0 −1 2 −1−1 0 0 −1 2

Radu Balan () Graphs 1

Page 39: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

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 00 −1 2 −1 00 0 −1 2 −1−1 0 0 −1 2

Radu Balan () Graphs 1

Page 40: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Graph LaplacianExample

∆ =

2 −1 0 0 −1 0 0 0 0−1 3 0 −1 0 0 0 −1 00 0 1 0 −1 0 0 0 00 −1 0 2 0 0 −1 0 0−1 0 −1 0 4 −1 −1 0 00 0 0 0 −1 2 −1 0 00 0 0 −1 −1 −1 3 0 00 −1 0 0 0 0 0 2 −10 0 0 0 0 0 0 −1 1

Radu Balan () Graphs 1

Page 41: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Graph LaplacianExample

∆ =

2 −1 0 0 −1 0 0 0 0−1 3 0 −1 0 0 0 −1 00 0 1 0 −1 0 0 0 00 −1 0 2 0 0 −1 0 0−1 0 −1 0 4 −1 −1 0 00 0 0 0 −1 2 −1 0 00 0 0 −1 −1 −1 3 0 00 −1 0 0 0 0 0 2 −10 0 0 0 0 0 0 −1 1

Radu Balan () Graphs 1

Page 42: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Normalized Laplacians∆

Normalized Laplacian: (using pseudo-inverses)∆ = D−1/2∆D−1/2 = I − D−1/2AD−1/2

∆i ,j =

1 if i = j and di > 0

− 1√d(i)d(j)

if (i , j) ∈ E0 otherwise

Normalized Asymmetric Laplacian:L = D−1∆ = I − D−1A

Li ,j =

1 if i = j and di > 0− 1

d(i) if (i , j) ∈ E0 otherwise

Note:∆D−1 = I − AD−1 = LT ; (D−1)kk = (D−1/2)kk = 0 if d(k) = 0

Radu Balan () Graphs 1

Page 43: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Normalized Laplacians∆

Normalized Laplacian: (using pseudo-inverses)∆ = D−1/2∆D−1/2 = I − D−1/2AD−1/2

∆i ,j =

1 if i = j and di > 0

− 1√d(i)d(j)

if (i , j) ∈ E0 otherwise

Normalized Asymmetric Laplacian:L = D−1∆ = I − D−1A

Li ,j =

1 if i = j and di > 0− 1

d(i) if (i , j) ∈ E0 otherwise

Note:∆D−1 = I − AD−1 = LT ; (D−1)kk = (D−1/2)kk = 0 if d(k) = 0

Radu Balan () Graphs 1

Page 44: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Normalized Laplacians∆

Normalized Laplacian: (using pseudo-inverses)∆ = D−1/2∆D−1/2 = I − D−1/2AD−1/2

∆i ,j =

1 if i = j and di > 0

− 1√d(i)d(j)

if (i , j) ∈ E0 otherwise

Normalized Asymmetric Laplacian:L = D−1∆ = I − D−1A

Li ,j =

1 if i = j and di > 0− 1

d(i) if (i , j) ∈ E0 otherwise

Note:∆D−1 = I − AD−1 = LT ; (D−1)kk = (D−1/2)kk = 0 if d(k) = 0

Radu Balan () Graphs 1

Page 45: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Normalized LaplaciansExample

Example:

∆ =

1 −0.5 0 0 −0.5−0.5 1 −0.5 0 0

0 −0.5 1 −0.5 00 0 −0.5 1 −0.5−0.5 0 0 −0.5 1

Radu Balan () Graphs 1

Page 46: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Normalized LaplaciansExample

Example:

∆ =

1 −0.5 0 0 −0.5−0.5 1 −0.5 0 0

0 −0.5 1 −0.5 00 0 −0.5 1 −0.5−0.5 0 0 −0.5 1

Radu Balan () Graphs 1

Page 47: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Spectral AnalysisEigenvalues and Eigenvectors

Recall the eigenvalues of a matrix T are the zeros of the characteristicpolynomial:

pT (z) = det(zI − T ) = 0.

There are exactly n eigenvalues (including multiplicities) for a n× n matrixT . The set of eigenvalues is calles its spectrum.

If λ is an eigenvalue of T , then its associated eigenvector is the non-zeron-vector x such that Tx = λx .Remark. Since det(A1A2) = det(A1)det(A2) and L = D−1/2∆D1/2 itfollows that eigs(∆) = eigs(L) = eigs(LT ).

Radu Balan () Graphs 1

Page 48: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Spectral AnalysisEigenvalues and Eigenvectors

Recall the eigenvalues of a matrix T are the zeros of the characteristicpolynomial:

pT (z) = det(zI − T ) = 0.

There are exactly n eigenvalues (including multiplicities) for a n× n matrixT . The set of eigenvalues is calles its spectrum.If λ is an eigenvalue of T , then its associated eigenvector is the non-zeron-vector x such that Tx = λx .

Remark. Since det(A1A2) = det(A1)det(A2) and L = D−1/2∆D1/2 itfollows that eigs(∆) = eigs(L) = eigs(LT ).

Radu Balan () Graphs 1

Page 49: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Spectral AnalysisEigenvalues and Eigenvectors

Recall the eigenvalues of a matrix T are the zeros of the characteristicpolynomial:

pT (z) = det(zI − T ) = 0.

There are exactly n eigenvalues (including multiplicities) for a n× n matrixT . The set of eigenvalues is calles its spectrum.If λ is an eigenvalue of T , then its associated eigenvector is the non-zeron-vector x such that Tx = λx .Remark. Since det(A1A2) = det(A1)det(A2) and L = D−1/2∆D1/2 itfollows that eigs(∆) = eigs(L) = eigs(LT ).

Radu Balan () Graphs 1

Page 50: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Spectral AnalysisRayleigh Quotient

Recall the following result:

TheoremAssume 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 Rn.3 The largest eigenvalue λmax and the smallest eigenvalue λmin satisfy

λmax = maxx 6=0

〈Tx , x〉〈x , x〉 , λmin = min

x 6=0

〈Tx , x〉〈x , x〉

Radu Balan () Graphs 1

Page 51: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Spectral AnalysisRayleigh Quotient

For two symmetric matrices T , S we say T ≤ S if 〈Tx , x〉 ≤ 〈Sx , x〉 for allx ∈ Rn.

Consequence 3 can be rewritten:

λminI ≤ T ≤ λmax I

In particular we say T is positive semidefinite T ≥ 0 if 〈Tx , x〉 ≥ 0 forevery x .It follows that T is positive semidefinite if and only if every eigenvalue ofT is positive semidefinite (i.e. non-negative).

Radu Balan () Graphs 1

Page 52: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Spectral AnalysisRayleigh Quotient

For two symmetric matrices T , S we say T ≤ S if 〈Tx , x〉 ≤ 〈Sx , x〉 for allx ∈ Rn.Consequence 3 can be rewritten:

λminI ≤ T ≤ λmax I

In particular we say T is positive semidefinite T ≥ 0 if 〈Tx , x〉 ≥ 0 forevery x .It follows that T is positive semidefinite if and only if every eigenvalue ofT is positive semidefinite (i.e. non-negative).

Radu Balan () Graphs 1

Page 53: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

Spectral AnalysisRayleigh Quotient

For two symmetric matrices T , S we say T ≤ S if 〈Tx , x〉 ≤ 〈Sx , x〉 for allx ∈ Rn.Consequence 3 can be rewritten:

λminI ≤ T ≤ λmax I

In particular we say T is positive semidefinite T ≥ 0 if 〈Tx , x〉 ≥ 0 forevery x .It follows that T is positive semidefinite if and only if every eigenvalue ofT is positive semidefinite (i.e. non-negative).

Radu Balan () Graphs 1

Page 54: Lecture 1: Graphs, Adjacency Matrices, Graph Laplacian · Graphs Matrix Analysis Definitions Metric Distance between vertices:For two vertices x,y, the distance d(x,y) is the length

Graphs Matrix Analysis

ReferencesB. Bollobas, Graph Theory. An Introductory Course,Springer-Verlag 1979. 99(25), 15879–15882 (2002).

F. Chung, L. Lu, The average distances in random graphs with givenexpected degrees, Proc. Nat.Acad.Sci.

R. Diestel, Graph Theory, 3rd Edition, Springer-Verlag 2005.

P. Erdos, A. Renyi, On The Evolution of Random Graphs

G. Grimmett, Probability on Graphs. Random Processes onGraphs and Lattices, Cambridge Press 2010.

J. Leskovec, J. Kleinberg, C. Faloutsos, Graph Evolution: Densificationand Shrinking Diameters, ACM Trans. on Knowl.Disc.Data, 1(1) 2007.

Radu Balan () Graphs 1