103
Graph Theory and Spectral Methods for Pattern Recognition Richard C. Wilson Dept. of Computer Science University of York

Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Graph Theory and Spectral Methods forPattern Recognition

Richard C. WilsonDept. of Computer Science

University of York

Page 2: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Graphs and Networks

Graphs and networks are all around us

‘Simple’ networks10s to 100s of vertices

Page 3: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Graphs and networks

PIN Social Network

‘Complex’ networks1000s to millions of vertices

Page 4: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

What is a network?

• A network consists of– a set of vertices (representing parts, elements, objects, features etc)

– a set of edges (relationships between parts)

• The vertices of a network are often indistinguishable (or atleast hard to tell apart)– If we can tell one vertex from another reliably, this is a different

(easier) problem(easier) problem

• Information encoded in the relationships, not the partsthemselves

Page 5: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Graph and Networks

There are many interesting questions to ask about network:

What is the structure of a network?

Are there parts? (clustering)

How are they connected?

Do the parts look the same? (similarity, stationary)Do the parts look the same? (similarity, stationary)

Are two networks the same? (isomorphism)

How similar are they? (inexact matching)

Can we tell two types of network apart? (features)

How can we model a set of networks? (models)

Page 6: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

A Network

• Vertices denote objects and edges denote a relationshipbetween a pair of vertices

Vertex

Edge

• Vertices and edges may have discrete labels or continuousmeasurements associated with them– The graph is then called attributed or an attributed relational graph

(ARG)

• A particular type of ARG has weights on the edges [0,1]representing the strength of the connection– Called a weighted graph

Page 7: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

A Network

• Graphs can be undirected or directed.– Directed means the edges have a direction to them

• The degree of a vertex is the number of edges connected tothat vertexthat vertex– For directed graphs we have in-degree and out-degree

Page 8: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

A Network

• Networks are structural – it is the arrangement of edgesthat matters

12

3

4

5

23

5

4

1

• In order to compare the edges, we need to know which iswhich

• We can do this by labelling the vertices

• In a ‘pure’ network, there is no intrinsic difference betweenthe vertices

• We do not know which labelling is the best and there are n!labellings

Page 9: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Notation

• Common notation

V is the set of vertices (|V| is the order of the graph)

E is the set of edges (|E| is the size of the graph)

),,( AEVG

edgedirected,,,

edgeundirected,,,

VvVuvue

VvVuvueEe

A is an attribute functions, maps vertices and edges onto theirattributes

edgedirected,,, VvVuvue

Page 10: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Key Graph Theory Problems

• Graph Isomorphism– Is there a mapping between the vertices which makes the edges

sets of the graphs identical?

– Unknown computational complexity

• Maximal Clique– A clique is a set of vertices which are all mutually connected

– Finding the Maximal Clique is NP-complete– Finding the Maximal Clique is NP-complete

• Maximum Common Subgraph (MCS)– Find two subgraphs which are isomorphic between two graphs

– Can be reduced to maximal clique

• Graph Edit Distance (GED)– An example of inexact similarity between two graphs

– Under some conditions reducable to MCS

– More on this later...

Page 11: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Labelling

• Key point: A graph or network does not change whenwe label it in a different way

• So if we want to measure something useful about a graph (graph feature), then either

We need to make sure the labelling is the sameWe need to make sure the labelling is the sameevery time (matching)

orWe need to make features which do not depend

on the labelling (invariance)

Page 12: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Graph Spectrum

Page 13: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Matrix Representation

• Spectral Graph Theory and related methods depend on thematrix representation of a graph

• A Matrix Representation X of a network is matrix withentries representing the vertices and edges– First we label the vertices

– Then an element of the matrix Xuv represents the edge between vertices uand vand v

– Xuu represents the vertex u

– The most basic example is the adjacency matrix A

00110

00100

11010

10101

00010

5

4

3

2

1

54321

12

3

4

5

Page 14: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Matrix Representation

• For an undirected graph, the matrix is symmetric

• The adjacency contains no vertex information; The degree matrix Dcontains the degrees of the vertices

– degree=number of edges containing that vertex

• The Laplacian (L) is

20000

01000

00300

00030

00001

D

ADL • The Laplacian (L) is

• Signless Laplacian

20110

01100

11310

10131

00011

ADL

ADL s

Page 15: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Matrix Representation

• Normalized Laplacian

• Entries are

2

1

2

1

2

1

2

1

ˆ

LDD

ADDIL

• Entries are

otherwise0

),(1

1

Evudd

vu

Lvu

uv

Page 16: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Incidence matrix

• The incidence matrix of a graph is a matrix describing the relationshipbetween vertices and edges

• Relationship to signless Laplacian

10

01

11

1,32,1

M1

2

3

1

2

TMML • Adjacency

• LaplacianDMMA T

TMMDL 2

Ts MML

Page 17: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Matrix Representation

• Consider the Laplacian (L) of this network

20110

01100

11310

10131

00011

5

4

3

2

1

54321

12

3

4

5

1

2

00011

10113

2

1

54321

• Clearly if we label the network differently, we get a different matrix

• In fact

represents the same graph for any permutation matrix P of the nlabels

TPLPL '

20101

01100

11301

00011

5

4

3

2

Page 18: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Characterisations

• Are two networks the same? (Graph Isomorphism)– Is there a bijection between the vertices such that all the edges are

in correspondence?

• Interesting problem in computational theory– Complexity unknown

– Hypothesised as separate class in NP-hierarchy, GI-hard

• Graph Automorphism: Isomorphism between a graph and• Graph Automorphism: Isomorphism between a graph anditself

• Equivalence between GI and counting number of GAs

G1G2

G1G2

Page 19: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Characterisations

• An equivalent statement: Two networks are isomorphic iffthere exists a permutation matrix P such that

• X should contain all information about the network– Applies to L, A etc not to D

TPPXX 12

X is a full matrixrepresentation

– Applies to L, A etc not to D

• P is a relabelling; changes the order in which we label thevertices

• Our measurements from a matrix representation should beinvariant under this transformation (similarity transform)

representation

Page 20: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Eigendecomposition

• At the heart of spectral graph theory are matrixeigenvalues and eigenvectors

– X is the square matrix we are interested in

– λ is an eigenvalue of the matrix

– u is an (right) eigenvector of the matrix

• Left eigenvector

uXu

• Left eigenvector

• For a symmetric matrix– Always n orthogonal eigenvectors

– Eigenvalues real

– Left & right eigenvectors the same

TT uXu

Page 21: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Spectral Graph Theory

• Any square matrix has an eigendecomposition (intoeigenvectors and eigenvalues)

• When dealing with undirected graphs – these have a squareand symmetric matrix representation

• The eigendecomposition is thenTUUX

110 nuuu

1

1

0

0

0

00

n

All real numbers

Page 22: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Spectral Graph Theory

• Later on, I will talk about transition matrices and directedgraphs

• These have non-symmetric matrix representations– Left and right eigenvalues are the same, but left and right

eigenvectors are different

UUX TLR

– Real or complex-conjugate pairs for eigenvalues

1 UU

LR

Page 23: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Perron-Frobenius Theorem

Perron-Frobenius Theorem:

If X is an irreducible square matrix with non-negative entries,then there exists an eigenpair (λ,u) such that

0

i

u

i

R

Applies to both left and right eigenvector

• Key theorem: if our matrix is non-negative, we can find aprincipal(largest) eigenvalue which is positive and has anon-negative eigenvector

• Irreducible implies associated digraph is stronglyconnected

0ju

Page 24: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Spectral Graph Theory

• The graph has a ordered set of eigenvalues (λ0, λ1,… λn-1)

• Ordered in terms of size (I will use smallest first)

• The (ordered) set of eigenvalues is called the spectrum ofthe graph

• I will discuss how the spectrum and the eigenvectorsprovide useful information about the graph

Page 25: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

A note on computation

• Many efficient computational routines available foreigendecomposition– Most notably Lapack + machine specific optimisations

– N3 complexity

• Suitable for networks with thousands of vertices

• Problematic for networks of 10000+ vertices

• Often such networks are sparse– Very low edge density

• In nearly all cases, you only need some of the largesteigenvalues

• For sparse network, small set of eigenvalues, use theLanczos method

Page 26: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Spectrum

Theorem: The spectrum is unchanged by the relabellingtransform

• The spectrum is an acceptable graph feature

Corollary: If two graphs are isomorphic, they have the same

12

12

TPPXX

Corollary: If two graphs are isomorphic, they have the samespectrum

• This does not solve the isomorphism problem, as twodifferent graphs may have the same spectrum

Page 27: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Spectrum

• These two graphs have the same spectrum using theLaplacian representation

[5.24][3]2

20.76

[5.24][3]2

20.76

• This is a cospectral pair

• Necessary but not sufficient...

• The matrix representation we use has a big effect on howmany of these cospectral graphs there are

0.76

Page 28: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Cospectral graphs

• How many such graphs are there and how does it dependon representation? (Zhu & Wilson 2008)

*50 trilliongraphs of size

13*

Page 29: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Cospectrality

• Open problem: Is there a representation in which nearly allgraphs are determined by the spectrum (non-cospectral)?

• Answer for trees: No, nearly all trees are cospectral

• In practice, cospectrality not a problem– Two randomly selected graphs have tiny chance of being

cospectral

• If we pick graphs from a specialised family, may be a• If we pick graphs from a specialised family, may be aproblem– Regular, strongly regular graphs

Page 30: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Spectrum of A

Spectrum of A:

• Positive and negative eigenvalues

01

max110max 0

0

n

n

i

dd

• Bipartite graph– If λ is an eigenvalue, then so is -λ

– Sp(A) symmetric around 0

Eigenvectors:

• Perron-Frobenius Theorem (A non-negative matrix)– n-1 is largest magnitude eigenvalue

– Corresponding eigenvector xn-1 is non-negative

01 n

Page 31: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

• Bipartite graph

• Adjacency has formAu Bu

• Adjacency has form

• If (uA uB)T is an eigenvector with eigenvalue then(uA -uB)T is an eigenvector with eigenvalue -

• The adjacency spectrum is symmetric around zero

0'

'0TA

AA

Page 32: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Spectrum of L

Spectrum of L

• L positive semi-definite

• There always exists an eigenvector 1 with eigenvalue 0

n

E

n

i

1100

2

• There always exists an eigenvector 1 with eigenvalue 0– Because of zero row-sums

• The number zeros in the spectrum is the number ofdisconnected components of the graph.

Page 33: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Spanning trees

• A spanning tree of a graph is a tree containing only edgesin the graph and all the vertices

• Example

• Kirchhoff’s theoremThe number of spanning trees of a graph is

1

1

1 n

ii

n

Page 34: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Spectrum of normalised L

Spectrum of

• positive semi-definite

• As with Laplacian, the number zeros in the spectrum is the

20 110

n

i V

L

L

• As with Laplacian, the number zeros in the spectrum is thenumber of disconnected components of the graph.

• Eigenvector exists with eigenvalue 0 and entries

• ‘scale invariance’

Tnddd 21

Page 35: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Information from Spectrum

• We can get useful information direct from the spectrum:

• The Laplacians are positive semidefinite with smallesteigenvalue 0– Normalized Laplacian has max eigenvalue 2

• Sp(L) for a graph of disconnected components is the unionof the spectra of all the components– Hence the number of zero eigenvalues counts the number of

components

• Spectra of Graphs [Brouwer & Haemers, Springer]

Page 36: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Information from Spectrum

• For regular graphs, the spectrum of A and L directlyrelated

• Smallest eigenpair of A becomes largest of L

AL k

k

k

AIL

ID

• Smallest eigenpair of A becomes largest of L

• For non-regular graphs, eigenpairs are not simplyconnected– But small eigenvalues of A correspond in some sense to large

eigenvalues of L

Page 37: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Coding Attributes

• So far, we have considered edges only as present or absent{0,1}

• If we have more edge information, can encode in a varietyof ways

• Edges can be weighted to encode attribute

• Include diagonal entries to encode vertices• Include diagonal entries to encode vertices

00110

00100

11010

1016.02.0

0002.04.0

A0.40.6

0.2

Page 38: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Coding Attributes

• Note: When using Laplacian, add diagonal elements afterforming L

• Label attributes: Code labels into [0,1]

• Example: chemical structures

Edges

─ 0.5

═ 1.0

Aromatic 0.75

Vertices

C 0.7

N 0.8

O 0.9

Page 39: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Coding Attributes

• Spectral theory works equally well for complex matrices

• Matrix entry is x+iy

• Can encode two independent attributes per entry, x and y

• Symmetric matrix becomes Hermitian matrix– Unchanged by conjugate transpose †, transpose+complex

conjugate

• Eigenvalues real, eigenvectors complex

03.01.00

2.01.003.05.0

03.05.00

i

ii

i

A

AA

Page 40: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Coding Attributes

• Example: Shape skeletons

• Shock graph has vertices where shocks meets and edgeswith lengths l and angles θwith lengths l and angles θ

• Encode as complex weight

• Naturally hermitian asijijijij

i

ijij illelA ij

sincos

jiij

jiij ll

Page 41: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Similarity

Page 42: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Similarity of Networks

• How can we measure the similarity of two networks?

• Key idea: Graph Edit Distance(GED)

• Edit operations– Vertex insertion, deletion

– Edge insertion, deletion

– Relabelling a vertex

• Associate a cost with each operation

• Find a sequence of edit operations which transforms onenetwork into the other

• The minimum possible cost of a sequence is the graph editdistance

• NP-complete so we cannot actually compute it

Page 43: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

GED - example

Edge deletionCost ed

Vertex deletionCost vd

Edge insertionCost eiG1

The sequence of edit

operations is an edit pathVertex relabel

Cost vl

G2

operations is an edit path

Ec(E)=ed+vd+ei+vl

)(min),( 21 EcGGGEDE

Page 44: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Graph similarity

• The simplest form of GED is zero cost for vertexoperations and relabelling– Then equivalent to Maximum Common Subgraph [Bunke, PAMI

1999]

• Since we cannot compute GED, we generally resort toapproximate methods– Compute matches– Compute matches

– Compare features

• If we can get good features, we can use them to comparegraphs

Page 45: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Spectral Similarity

• How good is the spectrum for similarity comparisons?[Zhu, Wilson 2008]

Page 46: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Spectral Features

• The eigendecomposition of a matrix representation is

• We used the eigenvalues in the spectrum, but there isvaluable information in the eigenvectors.– Unfortunately the eigenvectors are not invariant U→PU

– The components are permuted

• Spectral approach partially solves labelling problem

TUUX

• Spectral approach partially solves labelling problem– Reduced from a similarity transform to permutation

Page 47: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Theorem: The eigenvector components are permuted by therelabelling transform

The columns of U are ordered by the eigenvalues, but the

Eigenvectors

12

1122

12

PUU

PUPUUU

PPXX

TTT

T

The columns of U are ordered by the eigenvalues, but therows still depend on the labelling

Additional problem: If eigenvalues repeat, then U is notunique

21

21

,

,,,

uu

uu

ba

Page 48: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Spectral Features

• Can we use the eigenvectors to provide features for anetwork?

• Observation:

is a polynomial which does not change when the variablesare permuted

• Part of a family of elementary symmetric polynomials

3231213212 ),,( xxxxxxxxxS

• Part of a family of elementary symmetric polynomialsinvariant to permutation [Wilson & Hancock 2003]

• Hence if u is an eigenvector, Sr(u) is a network feature

r

r

iiiiiir xxxS

21

21 ,,,)( x

Page 49: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

• Shape graphs distributed by polynomial features

Page 50: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Spectral Features

Theorem:

All graphs which have simple spectra can be distinguishedfrom each other in polynomial time

• Simple spectrum means than there are no repeated eigenvalues in thespectrum

• Hence the eigendecomposition is unique

• Then we can order the components of the eigenvectors in polynomialtime

– For example by sorting

• Comparison then determines if they are isomorphic

• Open Problem: Repeated eigenvalues, difficultgraphs for isomorphism and labelling ambiguityare all connected in a way not yet understood

Page 51: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Partitioning

Page 52: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Spectral Partitioning

• The clustering problem is a central one fornetworks

• Also called community detection

• Partition the network into parts

– Highly connected within parts

– Weakly connected between parts

• Spectral Graph theory can address this problem

Page 53: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Graph Partitioning

A graph cut is a partition of a graph into two disjoint sets

Partition PPartition Q

Cut edges

The size of the cut is the number of edges cut, or the sum ofthe weights for weighted graphs

The minimum cut is the cut with smallest size

QvPu

uvAQP,

),cut(

Page 54: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Graph Partitioning

• Assume edges indicate similarity

• The goal of clustering is to maintain high intraclustersimilarity and low intercluster similarity

• Cut measures cost of partition in terms of similarity– But must be compared to overall similarity of partitions

• Can measure overall similarity with association• Can measure overall similarity with association

Normalized cut

VvPu

uvAVP,

),assoc(

),assoc(

),cut(

),assoc(

),cut(),Ncut(

VQ

QP

VP

QPQP

Shi & Malik 2000

Page 55: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Normalized cut

Define partition vector x such that

Then

Qu

Puxu

if1

if1

Vvx uv

xx vuuv

Vvx uv

xx vuuv

u

vu

u

vu

A

xxA

A

xxA

,0

0,0

,0

0,0)Ncut(x

With a bit of transformation we can turn this into a matrixform

And we should try to minimise Ncut to find the best partition

VvxVvx uu ,0,0

0

},1{

)()Ncut(

D1y

Dyy

yADyy

T

u

T

T

by

Page 56: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Normalized cut

• As it is, the problem is hard because y is discrete

• Take the relaxation of the problem, i.e. y allowed to takereal values

• Solution is easily given by solving the eigenvalue problem

yDzzzDADD

DyyAD

)()(

)(

2

1

2

1

2

1

• Hence the solution is an eigenvector of the normalizedLaplacian

zzL

zzADDI

yDzzzDADD

ˆ

)()(

2

1

2

1

222

Page 57: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Normalized Cut

• If we want the smallest Ncut, then we should choose theeigenvector with smallest eigenvalue

• 0 is an eigenvalue of , with corresponding eigenvector

– But z=u0 does not satisfy condition

L

0D1yT

1

Tnddd 210 u

02

1

1D1D1DzD1y TTT

Page 58: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Normalized Cut

• However the eigenvector with second smallest eigenvaluedoes satisfy this condition

• This is called the Fiedler vector and gives an approximatesolution to min normalized cut 0D1yT

zDy

xz2/1

1

• The sign of the components of the Fiedler vector gives thepartition– Eg

zDy

6.03.01.02.01 x

Partition 1 Partition 2

Page 59: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Node centrality

• Another issue of interest for complex networks is nodecentrality– How important or significant is a node in a network

• Simple measures of node centrality

• Degree centrality– Just the degree of the vertex or sum of weights

– Simple but completely local

• Betweeness centrality– Measures how many shortest paths between other vertices pass

through this vertex

• Closeness centrality– Finds the ‘median’ vertex, in the sense of the one which is closest

to the rest

Page 60: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Centrality from spectral graph theory

• There is a solution to the centrality problem fromspectral graph theory

• Idea: The centrality of u is proportional to thecentrality of its neighbours

Evu

vu xx ),(

• A simple rearrangement of this gives

• An eigenvector of A will give a centrality measure

Vv

vuv

Evu

xA

1

),(

xAx

Page 61: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Eigenvector Centrality

• We also require non-negative centrality

• Perron-Frobenius Theorem guarantees for non-negative Athe principal eigenvector is non-negative

• Eigenvector centrality given by principal eigenvector of A

uxu 0

Page 62: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Random Walks

Page 63: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Random Walks

• Spectral features are not tightly coupled to structure

• Can we explore the structure of the network?

• A random walker travels between vertices by choosing anedge at random

• At each time step, a step is taken down an edge

Page 64: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Discrete Time Random Walk

• Imagine that we are standing at vertex ui

• At each time, we chose one of the available edges with equalprobability

• Then the probability of arriving at vertex uj is

i

ijji

iijd

A

Euu

EuuduuP

),(0

),(1

)|(

• Therefore, at the next time step, the distribution is

iji

dEuu ),(0

iit

i

ij

iitijjt

uPd

A

uPuuPuP

)(

)()|()(1

Page 65: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Discrete Time Random Walk

• We can write this in matrix form

• T is the transition matrix of the walk

– Stochastic (rows sum to 1)

)(

)()(

11

11

1

ADTTππ

ADππ

tt

tt

iit

i

ij

jt uPd

AuP

– Stochastic (rows sum to 1)

– Largest magnitude eigenvalue 1

• If we start in state π0 then at time t

tt Tππ 0

Page 66: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Discrete Time Random Walk

• What happens after a very long time?t

ts Tππ 0lim

t

TttT UU

0

0lim

1||

t

t

TLR UUT

T

tn

t

t

UU

1

1

0

0

0

1lim

1

t

t

TnL

nRnT

nLnRns

1,

1,11,1,01

11

,1

u

1uuuππ

Page 67: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Discrete Time Random Walks

• After a very long time, the walk becomes stationary

– Only the largest (left) eigenvector of T survives

– This is the principal eigenvector of T (with λ=1) and is easy to solve; it is

πTπ

|| E

dπ i

i

– After a long time, we are at each node with a probability proportional to itsdegree

• It is natural to think of the probability as a measure of centrality

• In this situation, eigenvector centrality (of T) coincides with degreecentrality

|| E

Page 68: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

PageRank

• One important application for centrality is for the web

– More central pages are more important

• Idea:

– Surfer clicks links to new pages at random

– May also quit and start fresh at a random page (‘teleporting’)

– Importance of page is prob of ending up there

• Links are directed, but makes no difference to the formulation

JADT 1)1(– J is matrix of all-ones (teleportation transitions)

– α is the probability of starting over

• Eigenvector centrality for T is the PageRank (Google) of each page

JADT 1)1(

Page 69: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Walk spectra

• T is another matrix representation, although it is notsymmetric– As before can use spectrum as a graph feature

– Same in character as spectra of other representations

• Symmetric representation can be provided by supportgraph– Edge in support graph if there is an n-step path between start and– Edge in support graph if there is an n-step path between start and

end vertices

– Equivalent to non-zero entry in Tn

• S(Tn) is the support of Tn, set non-zero entries to 1– Adjacency matrix of support graph

• Look at the spectrum of S(Tn)

• For regular graphs, directly related to spectrum of A,T

Page 70: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Differential Equations

Page 71: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Differential Equations on Graphs

• A whole host of important physical processes can bedescribed by differential equations

• Diffusion, or heat flow

• Wave propagation

pt

p 2

• Schrödinger Equation

pt

p 2

2

2

Vppmt

pi

22

2

Page 72: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Laplacian

• is the Laplacian differential operator

• In Euclidean space

• Different in non-flat spaces

• Take a 1D discrete version of this– i, i-1,i+1 denote neighbouring points

2

2

2

2

2

22

zyx

2

– i, i-1,i+1 denote neighbouring points

)(2)()(

)()()()(

)()(

11

11

2/12/12

22

iii

iiii

ii

xpxpxp

xpxpxpxp

xx

px

x

p

x

pp

xi xi+1xi-1

Page 73: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Laplacian

• A graph which encodes the neighbourhood structure

• The Lapacian of this graph is

• Apply L to a vector (a ‘function’ taking values on the

i i+1i-1

110

121

011

L

• Apply L to a vector (a ‘function’ taking values on thevertices)

• So the graph Laplacian is a discrete representation of thecalculus Laplacian– Vertices are points in space

– Edges represent neighbourhood structure of space

– Note minus sign!

p

ppp iiii

2

11 2

Lp

Page 74: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Diffusion

• On a network, we identify the Laplacian operator 2 withthe Laplacian of the network L

• Discrete space, continuous time diffusion process

-L2

pt

p 2

Lpp

t

t

Page 75: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Heat Kernel

• Solution

)exp()(

)0()()(

tt

pttp

LH

H

)0()exp(

)0()()0()(

pL

pHpH

tt

tt

tt

• Heat kernel H(t)

• Hij(t) describes the amount of heat flow from vertex i to j attime t

• Essentially another matrix representation, but can varytime to get different representations

)0()()0()exp(

)0()exp(

pLHpLL

pL

tt

tt

Page 76: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Diffusion as continuous time random walk

• Consider the following walk on a k-regular graph– At each time step:

• stay at the same vertex with probability (1-s)

• Move with prob. s to an adjacent vertex chosen uniformly at random

• This is called a lazy random walk

• Transition matrix

1

LI

AII

AIT

k

s

kk

s

kss

)(

1)1(

Page 77: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Diffusion as continuous time random walk

• Let s be a time-step

• n=t/s is the number of steps to reach time t

n

n

n

t

k

s

t

LI

LI

TT )(

nk

t

LI

LLIT

k

t

nk

tt

n

nsexplim)(lim

0

Page 78: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

• Small times

Spectral representation

t

t

T

e

e

t

ttt

2

1

0

0

)exp(

)exp()exp()(

UULH

ttt LLIH 22

!2

1)(

• Large times– Only smallest eigenvalues survive, λ1=0 and λ2

– Behaves like Fiedler vector (Normalized Cut)

tLI

!2

0 te

TteJn

t 222

1)( H

Page 79: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Heat Kernel

• Trace of H is a network feature [Xiao, Wilson, Hancock09]

• Describes a graph based on the shape of heat as it flowsacross network– How much heat is retained at a vertex at time t

1

2

3

4

5

6

7

8

9

10

1.00E-02 1.00E-01 1.00E+00 1.00E+01 1.00E+02

Line

Star

Page 80: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Heat Kernel Trace

]exp[)](Tr[ tti

i H

dttts s )](Tr[)( 1 H

• Use moments to describe shape of this curve [Xiao,Wilson, Hancock 09]

dttts )](Tr[)(0

H

Page 81: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

• Diagonal elements of the heat kernel have been used tocharacterise 3D object meshes [Sun et al 2009]

• Describes a particular vertex (for matching) by heatcontent at various times

• Global version to characterise whole mesh

Heat Kernel Signature

]),,(),,(),,([HKS210

xxHxxHxxH ttt

• Global version to characterise whole mesh

),,(),,(hist

),,(),,(hist

GHKS 2211

2211

11

00

uuHuuH

uuHuuH

tt

tt

Page 82: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Subgraph Centrality

• We can use the heat kernel to define another type of nodecentrality measure

• Consider the following adjacency matrix as a weightedgraph (with weights 1/√dudv on the edges)

2

1

2

1

ˆ

ADDA

• The weighted sum of all paths of length k between twovertices u and v is given by

uvkA

Page 83: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Subgraph Centrality

• Total communication between vertices is sum over paths ofall lengths

• α allows us to control the weight of longer paths vs shorter

• What should α be?– Number of possible ways to go increases factorially with k

0

ˆk

uvk

uvC A

– Number of possible ways to go increases factorially with k

– Longer paths should be weighted less

0

ˆ!k

uvk

k

uvk

tC A

Page 84: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Subgraph centrality

• Subgraph centrality (Estrada, Rodríguez-Velázquez 2005):centrality is the ability of vertex to communicate with others

• Relationship to heat kernel

v k

uvk

k

vuvu

k

tCs

0

ˆ!

A

H

A

AIL

ee

eet

tt

ttt

ˆ

ˆˆ)(

• Actually subgraph centrality uses A, but results coincideexactly for regular graphs

H1s

CA

V

e

ek

te

ee

t

k

tkk

t

0

ˆ!

Page 85: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Graph Complexity

Page 86: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Complexity

• What is complexity?

• Entropy

– Number of ways of arranging system with same macroscopicproperties

• Ensemble – collection of systems with identicalmacroscopic properties

WS ln

macroscopic properties– Compute probability of particular state

i

ii ppS ln

Page 87: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Graph Complexity

• The complexity of a graph is not a clearly defined term

• An empty graph has no complexity, but what about thecomplete graph?

• Different definitions serve different purposes

• Coloring complexity

• Number of ways to color a graph• Number of ways to color a graph

• NP-hard to compute

• Randomness complexity

• Distribution on set of graphs

• Shannon entropy of distribution

• Statistical complexity

• Based on edge/vertex graph statistics

Page 88: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Graph Complexity

• Heterogeneity Index [Estrada 2010]

• Complexity is non-uniformity of vertex degrees– Irregular graphs are complex

vuEvu

T

vu ddV

ddS

1ˆ11

),(

2

1L1

• is a normalizing constant

• 0 for regular graphs

• 1 (maximal) for star graphs

Page 89: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Von-Neumann entropy

• Mixtures of quantum systems are characterised by adensity matrix ρ

• This matrix completely characterizes an ensemble ofquantum systems

• The ensemble is a probabilistic mixture of quantumsystems in a superposition of states

• There is a natural measure of the entropy of the system, the• There is a natural measure of the entropy of the system, thevon Neumann entropy– An extension of classical entropy

• ρ is an hermitian matrix with trace 1)lnTr( S

Page 90: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Von Neumann Entropy

• is a symmetric (so hermitian) matrix with trace |V|

• So we can use as the density matrix of a quantumsystem, with the von Neumann entropy as its complexity

• Von Neumann graph complexity

L

L||

1

V

ii

VVVVS

ln)

ˆln

ˆTr(

LL

• Depends on spectrum of normalized Laplacian

i VVVV

Page 91: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Approximate von-Neumann Entropy

• Von Neumann entropy can measure complexity of graphsfrom spectrum, connection to structure not clear

• Approximation:

1

10)1(ln

VVS

xxxxx

ii

LL ˆTr1ˆTr

1

1

2

2

2

2

VV

VV

VVS

i

i

i

i

i

Page 92: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Approximate von Neumann Entropy

• Approximate vNE directly connected to structure

121

12ˆTr

ˆTr

),(

2

Eji jidd

V

V

L

L

• Compared with heterogenity, depends on 1/didj rather than1/√didj

1121

),(2

Eji jiddVV

S

Page 93: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Von Neumann Entropy

• Von Neumann entropy can also be used to controlmodelling complexity [Han et al 2010]

• Minimum description length criterion

• Log-likelihood of model given observed data + cost of

)()|( MSXMLLMDL

• Log-likelihood of model given observed data + cost ofdescribing model

• Model cost is entropy

Page 94: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Another complexity

• Partition function for graphs

• E(H) is the energy of graph H

• Can define energy level of graph as [Gutmann 1978]

H

kTHEeZ /)(

GE )(

• This derives from statistical mechanics– Graphs are particles with ‘heat’ and random motion

iGE )(

Page 95: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Another complexity

• Boltzmann distribution

• P(G) is the probability of a thermalized particle appearingin state G at temperature T

Z

eGP

kTGE /)(

)(

• Then another entropy is given by

ZkT

ZGEkT

GPS

i ln1

ln)(1

)(ln

Page 96: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Directed Graphs

Page 97: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Directed graph

• Directed graphs pose some interesting questions forspectral methods

• A will be non-symmetric

00100

11000

00101

00010

A12

3

4

• Spectrum will be complex– Real or complex conjugate pairs

• Now have in-degree din and out-degree dout

00100

001005

Page 98: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Walks on directed graphs

• The random walk transition matrix can be defined as– We select an out-edge at random

• Walk does not (necessarily) have nice properties

ADT -1out

Note D is still formed from row-sums (out-degree)

1 2 3 4

• 1 and 4 are sink nodes – once we arrive we can never leave

• Inverse of Dout not defined when such nodes exist (dout=0)– Modify so that the entry is 0 in this case

-1outD

Page 99: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Walks on directed graphs

• Consider starting a walk at 2, with time t=0– At time t=1 there is prob 0.5 of being at 1

– There is some additional probability of the sequence 2→3 →2 →1

1 2 3 4

– There is some additional probability of the sequence 2→3 →2 →1

– Therefore

• Now consider starting at 3– By symmetry

• Conclusion: limiting distribution of random walk ondirected graph depends on initial conditions– Unlike the case of undirected graph

5.0)1( p

5.0)1(5.0)4( pp

Page 100: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Walks on directed graphs

• Initialise at 1

• Walk follows sequence 1→ 2→3 →1 → 2…

• Walk is periodic– No limiting distribution

1

23

– No limiting distribution

Page 101: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Walks on directed graphs

Strongly connected directed graph:There exists a path between every pair of vertices

Therefore there are no sinks

• Strongly connected implies that T is an irreducible matrixand we can apply the Perron-Frobenius theorem to show(as in the undirected case) that there is a unique non-negative left eigenvector:negative left eigenvector:

– Which has eigenvalue 1

• There may be other eigenvectors with absolute eigenvalue1– If there are, then the walk is periodic

πTπ

Page 102: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Walks on directed graphs

• In spectral theory for directed graphs, we normally confineourselves to graphs which are– Strongly connected (T is irreducible)

– Aperiodic (T has a single eigenvector with eigenvalue magnitude1)

• Then the walk converges to a limiting distribution of π

• The solution for π is non-trivial unlike the undirected walk• The solution for π is non-trivial unlike the undirected walk

Page 103: Graph Theory and Spectral Methods for Pattern Recognition · 2013-10-24 · ‘Complex’networks 1000s to millions of vertices. What is a network? • A network consists of ... Graph

Laplacian of directed graph

• We can use the walk to define the Laplacian on a directedgraph

• The details are a little technical, see [2]

• Let Φ be a diagonal matrix with the elements of π on thediagonal

• Laplacian: ΦTΦTΦL T2

1• Laplacian:

• Normalized Laplacian:

• Symmetric

• Coincide with undirected definitions[2] Laplacians and the Cheeger inequality for directed graphs, Annals of Combinatorics, Fan Chung 2005

ΦTΦTΦL 2

2

1

2

1

2

1

2

1

2

1ˆ ΦTΦTΦΦIL T