Lably
Skip to content

Laplacian matrix

Matrix representation of a graph

  • 15 min read
  • 7 chapters

Related on Lably

Through Mathematics, Matrix (mathematics) and Graph (discrete mathematics)

The Laplacian matrix relates to many functional graph properties. Kirchhoff's theorem can be used to calculate the number of spanning trees for a given graph. The sparsest cut of a graph can be approximated through the Fiedler vector — the eigenvector corresponding to the second smallest eigenvalue of the graph Laplacian — as established by Cheeger's inequality. The spectral decomposition of the Laplacian matrix allows the construction of low-dimensional embeddings that appear in many machine learning applications and determines a spectral layout in graph drawing. Graph-based signal processing is based on the graph Fourier transform that extends the traditional discrete Fourier transform by substituting the standard basis of complex sinusoids for eigenvectors of the Laplacian matrix of a graph corresponding to the signal.

The Laplacian matrix is the easiest to define for a simple graph but is more common in applications for an edge-weighted graph, i.e., with weights on its edges — the entries of the graph adjacency matrix. Spectral graph theory relates properties of a graph to a spectrum, i.e., eigenvalues and eigenvectors of matrices associated with the graph, such as its adjacency matrix or Laplacian matrix. Imbalanced weights may undesirably affect the matrix spectrum, leading to the need of normalization — a column/row scaling of the matrix entries — resulting in normalized adjacency and Laplacian matrices.

Definitions for simple graphs

Laplacian matrix

Given a simple graph G with n vertices v1,…,vn, its Laplacian matrix Ln×n is defined element-wise as

Li,j:={deg⁡(vi)ifi=j−1ifi≠jandvi is adjacent to vj0otherwise,

or equivalently by the matrix

L=D−A,

where D is the degree matrix, and A is the graph's adjacency matrix. Since G is a simple graph, A only contains 1s or 0s and its diagonal elements are all 0s.

Here is a simple example of a labelled, undirected graph and its Laplacian matrix.

We observe for the undirected graph that both the adjacency matrix and the Laplacian matrix are symmetric and that the row- and column-sums of the Laplacian matrix are all zeros (which directly implies that the Laplacian matrix is singular).

For directed graphs, either the indegree or outdegree might be used, depending on the application, as in the following example:

In the directed graph, the adjacency matrix and Laplacian matrix are asymmetric. In its Laplacian matrix, column-sums or row-sums are zero, depending on whether the indegree or outdegree has been used.

Laplacian matrix for an undirected graph via the oriented incidence matrix

The |v|×|e| oriented incidence matrix B with element Bve for the vertex v and the edge e (connecting vertices vi and vj, with i ≠ j) is defined by

Bve={1,if v=vi−1,if v=vj0,otherwise.

Even though the edges in this definition are technically directed, their directions can be arbitrary, still resulting in the same symmetric Laplacian |v|×|v| matrix L defined as

L=BBT

where BT is the matrix transpose of B.

An alternative product BTB defines the so-called |e|×|e| edge-based Laplacian, as opposed to the original commonly used vertex-based Laplacian matrix L.

Symmetric Laplacian for a directed graph

The Laplacian matrix of a directed graph is by definition generally non-symmetric, while, e.g., traditional spectral clustering is primarily developed for undirected graphs with symmetric adjacency and Laplacian matrices. A trivial approach to applying techniques requiring the symmetry is to turn the original directed graph into an undirected graph and build the Laplacian matrix for the latter.

In the matrix notation, the adjacency matrix of the undirected graph could, e.g., be defined as a Boolean sum of the adjacency matrix A of the original directed graph and its matrix transpose AT, where the zero and one entries of A are treated as logical, rather than numerical, values, as in the following example:

Laplacian matrix normalization

A vertex with a large degree, also called a heavy node, results in a large diagonal entry in the Laplacian matrix dominating the matrix properties. Normalization is aimed to make the influence of such vertices more equal to that of other vertices, by dividing the entries of the Laplacian matrix by the vertex degrees. To avoid division by zero, isolated vertices with zero degrees are excluded from the process of the normalization.

Symmetrically normalized Laplacian

The symmetrically normalized Laplacian matrix is defined as:

Lsym:=(D+)1/2L(D+)1/2=I−(D+)1/2A(D+)1/2,

where D+ is the Moore–Penrose inverse of the degree matrix.

The elements of Lsym are thus given by

Li,jsym:={1if i=j and deg⁡(vi)≠0−1deg⁡(vi)deg⁡(vj)if i≠j and vi is adjacent to vj0otherwise.

The symmetrically normalized Laplacian matrix is symmetric if and only if the adjacency matrix is symmetric.

For a non-symmetric adjacency matrix of a directed graph, either of indegree and outdegree can be used for normalization:

Left (random-walk) and right normalized Laplacians

The left (random-walk) normalized Laplacian matrix is defined as:

Lrw:=D+L=I−D+A,

where D+ is the Moore–Penrose inverse. The elements of Lrw are given by

Li,jrw:={1if i=j and deg⁡(vi)≠0−1deg⁡(vi)if i≠j and vi is adjacent to vj0otherwise.

Similarly, the right normalized Laplacian matrix is defined as

LD+=I−AD+.

The left or right normalized Laplacian matrix is symmetric if the adjacency matrix is symmetric and the graph is regular. Otherwise, the left or right normalized Laplacian matrix is asymmetric. For example,

The example also demonstrates that if G has no isolated vertices, then D+A right stochastic and hence is the matrix of a random walk, so that the left normalized Laplacian Lrw:=D+L=I−D+A has each row summing to zero. Thus we sometimes alternatively call Lrw the random-walk normalized Laplacian. In the less uncommonly used right normalized Laplacian LD+=I−AD+ each column sums to zero since AD+ is left stochastic.

For a non-symmetric adjacency matrix of a directed graph, one also needs to choose indegree or outdegree for normalization:

The left out-degree normalized Laplacian with row-sums all 0 relates to right stochastic Dout+A , while the right in-degree normalized Laplacian with column-sums all 0 contains left stochastic ADin+.

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Discrete mathematics