转自:https://en.wikipedia.org/wiki/Laplacian_matrix#Deformed_Laplacian

From Wikipedia, the free encyclopedia

In the mathematical field of graph theory, the Laplacian matrix, sometimes called admittance matrix, Kirchhoff matrix or discrete Laplacian, is a matrix representation of a graph. Together with Kirchhoff's theorem, it can be used to calculate the number of spanning trees for a given graph. The Laplacian matrix can be used to find many other properties of the graph. Cheeger's inequality from Riemannian geometry has a discrete analogue involving the Laplacian matrix; this is perhaps the most important theorem in spectral graph theory and one of the most useful facts in algorithmic applications. It approximates the sparsest cut of a graph through the second eigenvalue of its Laplacian.

Contents

Definition

Given a simple graph G with n vertices, its Laplacian matrix Laplacian matrix(转) is defined as:[1]

Laplacian matrix(转)

where D is the degree matrix and A is the adjacency matrix of the graph. In the case of directed graphs, either the indegree or outdegree might be used, depending on the application.

The elements of Laplacian matrix(转) are given by

Laplacian matrix(转)

where deg(vi) is degree of the vertex i.

The symmetric normalized Laplacian matrix is defined as:[1]

Laplacian matrix(转),

The elements of Laplacian matrix(转) are given by

Laplacian matrix(转)

The random-walk normalized Laplacian matrix is defined as:

Laplacian matrix(转)

The elements of Laplacian matrix(转) are given by

Laplacian matrix(转)

Example

Here is a simple example of a labeled graph and its Laplacian matrix.

Labeled graph Degree matrix Adjacency matrix Laplacian matrix
Laplacian matrix(转) Laplacian matrix(转) Laplacian matrix(转) Laplacian matrix(转)

Properties

For an (undirected) graph G and its Laplacian matrix L with eigenvalues Laplacian matrix(转):

  • L is symmetric..
  • L is positive-semidefinite (that is Laplacian matrix(转) for all i). This is verified in the incidence matrix section (below). This can also be seen from the fact that the Laplacian is symmetric and diagonally dominant.
  • L is an M-matrix (its off-diagonal entries are nonpositive, yet the real parts of its eigenvalues are nonnegative).
  • Every row sum and column sum of L is zero. Indeed, in the sum, the degree of the vertex is summed with a "-1" for each neighbor.
  • In consequence, Laplacian matrix(转), because the vector Laplacian matrix(转) satisfies Laplacian matrix(转)
  • The number of times 0 appears as an eigenvalue in the Laplacian is the number of connected components in the graph.
  • The smallest non-zero eigenvalue of L is called the spectral gap.
  • The second smallest eigenvalue of L is the algebraic connectivity (or Fiedler value) of G.
  • The Laplacian is an operator on the n-dimensional vector space of functions f : V → Laplacian matrix(转), where V is the vertex set of G, and n = |V|.
  • When G is k-regular, the normalized Laplacian is: Laplacian matrix(转), where A is the adjacency matrix and I is an identity matrix.
  • For a graph with multiple connected components, L is a block diagonal matrix, where each block is the respective Laplacian matrix for each component, possibly after reordering the vertices (i.e. L is permutation-similar to a block diagonal matrix).
  • Laplacian matrix is singular.

Incidence matrix

Define an Laplacian matrix(转) x Laplacian matrix(转) oriented incidence matrix M with element Mev for edge e (connecting vertex i and j, with i > j) and vertex v given by

Laplacian matrix(转)

Then the Laplacian matrix L satisfies

Laplacian matrix(转)

where Laplacian matrix(转) is the matrix transpose of M.

Now consider an eigendecomposition of Laplacian matrix(转), with unit-norm eigenvectors Laplacian matrix(转) and corresponding eigenvalues Laplacian matrix(转):

Laplacian matrix(转)

Because Laplacian matrix(转) can be written as the inner product of the vector Laplacian matrix(转) with itself, this shows that Laplacian matrix(转) and so the eigenvalues of Laplacian matrix(转) are all non-negative.

Deformed Laplacian

The deformed Laplacian is commonly defined as

Laplacian matrix(转)

where I is the unit matrix, A is the adjacency matrix, and D is the degree matrix, and s is a (complex-valued) number. Note that the standard Laplacian is just Laplacian matrix(转).[2]

Symmetric normalized Laplacian

The (symmetric) normalized Laplacian is defined as

Laplacian matrix(转)

where L is the (unnormalized) Laplacian, A is the adjacency matrix and D is the degree matrix. Since the degree matrix D is diagonal and positive, its reciprocal square root Laplacian matrix(转) is just the diagonal matrix whose diagonal entries are the reciprocals of the positive square roots of the diagonal entries of D. The symmetric normalized Laplacian is a symmetric matrix.

One has: Laplacian matrix(转), where S is the matrix whose rows are indexed by the vertices and whose columns are indexed by the edges of G such that each column corresponding to an edge e = {u, v} has an entry Laplacian matrix(转) in the row corresponding to u, an entry Laplacian matrix(转) in the row corresponding to v, and has 0 entries elsewhere. (Note: Laplacian matrix(转) denotes the transpose of S).

All eigenvalues of the normalized Laplacian are real and non-negative. We can see this as follows. Since Laplacian matrix(转) is symmetric, its eigenvalues are real. They are also non-negative: consider an eigenvector g of Laplacian matrix(转) with eigenvalue λ and suppose Laplacian matrix(转) . (We can consider g and f as real functions on the vertices v.) Then:

Laplacian matrix(转)

where we use the inner product Laplacian matrix(转), a sum over all vertices v, and Laplacian matrix(转) denotes the sum over all unordered pairs of adjacent vertices {u,v}. The quantity Laplacian matrix(转) is called the Dirichlet sum of f, whereas the expression Laplacian matrix(转) is called the Rayleigh quotient of g.

Let 1 be the function which assumes the value 1 on each vertex. Then Laplacian matrix(转) is an eigenfunction of Laplacian matrix(转) with eigenvalue 0.[3]

In fact, the eigenvalues of the normalized symmetric Laplacian satisfy 0 = μ0≤...≤ μn-1≤ 2. These eigenvalues (known as the spectrum of the normalized Laplacian) relate well to other graph invariants for general graphs.[4]

Random walk normalized Laplacian

The random walk normalized Laplacian is defined as

Laplacian matrix(转)

where A is the Adjacency matrix and D is the degree matrix. Since the degree matrix D is diagonal, its inverse Laplacian matrix(转) is simply defined as a diagonal matrix, having diagonal entries which are the reciprocals of the corresponding positive diagonal entries of D. For the isolated vertices (those with degree 0), a common choice is to set the corresponding element Laplacian matrix(转) to 0. This convention results in a nice property that the multiplicity of the eigenvalue 0 is equal to the number of connected components in the graph. The matrix elements of Laplacian matrix(转) are given by

Laplacian matrix(转)

The name of the random-walk normalized Laplacian comes from the fact that this matrix is simply the transition matrix of a random walker on the graph. For example let Laplacian matrix(转) denote the i-th standard basis vector, then Laplacian matrix(转) is a probability vector representing the distribution of a random-walker's locations after taking a single step from vertex Laplacian matrix(转). i.e. Laplacian matrix(转). More generally if the vector Laplacian matrix(转) is a probability distribution of the location of a random-walker on the vertices of the graph then Laplacian matrix(转) is the probability distribution of the walker after Laplacian matrix(转) steps.

One can check that

Laplacian matrix(转),

i.e., Laplacian matrix(转) is similar to the normalized Laplacian Laplacian matrix(转). For this reason, even if Laplacian matrix(转) is in general not hermitian, it has real eigenvalues. Indeed, its eigenvalues agree with those of Laplacian matrix(转) (which is hermitian) up to a reflection about 1/2.

In some of the literature, the matrix Laplacian matrix(转) is also referred to as the random-walk Laplacian since its properties approximate those of the standard discrete Laplacian from numerical analysis.

Graphs

As an aside about random walks on graphs, consider a simple undirected graph. Consider the probability that the walker is at the vertex i at time t, given the probability distribution that he was at vertex j at time t-1 (assuming a uniform chance of taking a step along any of the edges attached to a given vertex):

Laplacian matrix(转)

or in matrix-vector notation:

Laplacian matrix(转)

(Equilibrium, which sets in as Laplacian matrix(转), is defined by Laplacian matrix(转).)

We can rewrite this relation as

Laplacian matrix(转)

Laplacian matrix(转) is a symmetric matrix called the reduced adjacency matrix. So, taking steps on this random walk requires taking powers of Laplacian matrix(转), which is a simple operation because Laplacian matrix(转) is symmetric.

Interpretation as the discrete Laplace operator

The Laplacian matrix can be interpreted as a matrix representation of a particular case of the discrete Laplace operator. Such an interpretation allows one, e.g., to generalise the Laplacian matrix to the case of graphs with an infinite number of vertices and edges, leading to a Laplacian matrix of an infinite size.

To expand upon this, we can "describe"[why?] the change of some element Laplacian matrix(转) (with some constant k) as[why?]

Laplacian matrix(转)

In matrix-vector notation,

Laplacian matrix(转)

which gives

Laplacian matrix(转)

Notice that this equation takes the same form as the heat equation, where the matrix L is replacing the Laplacian operator Laplacian matrix(转); hence, the "graph Laplacian".

To find a solution to this differential equation, apply standard techniques for solving a first-order matrix differential equation. That is, write Laplacian matrix(转) as a linear combination of eigenvectors Laplacian matrix(转) of L (so that Laplacian matrix(转)), with time-dependent Laplacian matrix(转)

Plugging into the original expression (note that we will use the fact that because L is a symmetric matrix, its unit-norm eigenvectors Laplacian matrix(转) are orthogonal):

Laplacian matrix(转)

whose solution is

Laplacian matrix(转)

As shown before, the eigenvalues Laplacian matrix(转) of L are non-negative, showing that the solution to the diffusion equation approaches an equilibrium, because it only exponentially decays or remains constant. This also shows that given Laplacian matrix(转) and the initial condition Laplacian matrix(转), the solution at any time t can be found.[5]

To find Laplacian matrix(转) for each Laplacian matrix(转) in terms of the overall initial condition Laplacian matrix(转), simply project Laplacian matrix(转) onto the unit-norm eigenvectors Laplacian matrix(转);

Laplacian matrix(转).

In the case of undirected graphs, this works because Laplacian matrix(转) is symmetric, and by the spectral theorem, its eigenvectors are all orthogonal. So the projection onto the eigenvectors of Laplacian matrix(转) is simply an orthogonal coordinate transformation of the initial condition to a set of coordinates which decay exponentially and independently of each other.

Equilibrium Behavior

To understand Laplacian matrix(转), note that the only terms Laplacian matrix(转) that remain are those where Laplacian matrix(转), since

Laplacian matrix(转)

In other words, the equilibrium state of the system is determined completely by the kernel of Laplacian matrix(转). Since by definition, Laplacian matrix(转), the vector Laplacian matrix(转) of all ones is in the kernel. Note also that if there are Laplacian matrix(转) disjoint connected components in the graph, then this vector of all ones can be split into the sum of Laplacian matrix(转) independent Laplacian matrix(转) eigenvectors of ones and zeros, where each connected component corresponds to an eigenvector with ones at the elements in the connected component and zeros elsewhere.

The consequence of this is that for a given initial condition Laplacian matrix(转) for a graph with Laplacian matrix(转) vertices

Laplacian matrix(转)

where

Laplacian matrix(转)

For each element Laplacian matrix(转) of Laplacian matrix(转), i.e. for each vertex Laplacian matrix(转) in the graph, it can be rewritten as

Laplacian matrix(转).

In other words, at steady state, the value of Laplacian matrix(转) converges to the same value at each of the vertices of the graph, which is the average of the initial values at all of the vertices. Since this is the solution to the heat diffusion equation, this makes perfect sense intuitively. We expect that neighboring elements in the graph will exchange energy until that energy is spread out evenly throughout all of the elements that are connected to each other.

Example of the Operator on a Grid

Laplacian matrix(转)
 
This GIF shows the progression of diffusion, as solved by the graph laplacian technique. A graph is constructed over a grid, where each pixel in the graph is connected to its 8 bordering pixels. Values in the image then diffuse smoothly to their neighbors over time via these connections. This particular image starts off with three strong point values which spill over to their neighbors slowly. The whole system eventually settles out to the same value at equilibrium.

This section shows an example of a function Laplacian matrix(转) diffusing over time through a graph. The graph in this example is constructed on a 2D discrete grid, with points on the grid connected to their eight neighbors. Three initial points are specified to have a positive value, while the rest of the values in the grid are zero. Over time, the exponential decay acts to distribute the values at these points evenly throughout the entire grid.

The complete Matlab source code that was used to generate this animation is provided below. It shows the process of specifying initial conditions, projecting these initial conditions onto the eigenvalues of the Laplacian Matrix, and simulating the exponential decay of these projected initial conditions.

N = 20;%The number of pixels along a dimension of the image
A = zeros(N, N);%The image
Adj = zeros(N*N, N*N);%The adjacency matrix

%Use 8 neighbors, and fill in the adjacency matrix
dx = [-1, 0, 1, -1, 1, -1, 0, 1];
dy = [-1, -1, -1, 0, 0, 1, 1, 1];
for x = 1:N
   for y = 1:N
       index = (x-1)*N + y;
       for ne = 1:length(dx)
           newx = x + dx(ne);
           newy = y + dy(ne);
           if newx > 0 && newx <= N && newy > 0 && newy <= N
               index2 = (newx-1)*N + newy;
               Adj(index, index2) = 1;
           end
       end
   end
end

%%%BELOW IS THE KEY CODE THAT COMPUTES THE SOLUTION TO THE DIFFERENTIAL
%%%EQUATION
Deg = diag(sum(Adj, 2));%Compute the degree matrix
L = Deg - Adj;%Compute the laplacian matrix in terms of the degree and adjacency matrices
[V, D] = eig(L);%Compute the eigenvalues/vectors of the laplacian matrix
D = diag(D);

%Initial condition (place a few large positive values around and
%make everything else zero)
C0 = zeros(N, N);
C0(2:5, 2:5) = 5;
C0(10:15, 10:15) = 10;
C0(2:5, 8:13) = 7;
C0 = C0(:);

C0V = V'*C0;%Transform the initial condition into the coordinate system 
%of the eigenvectors
for t = 0:0.05:5
   %Loop through times and decay each initial component
   Phi = C0V.*exp(-D*t);%Exponential decay for each component
   Phi = V*Phi;%Transform from eigenvector coordinate system to original coordinate system
   Phi = reshape(Phi, N, N);
   %Display the results and write to GIF file
   imagesc(Phi);
   caxis([0, 10]);
   title(sprintf('Diffusion t = %3f', t));
   frame = getframe(1);
   im = frame2im(frame);
   [imind, cm] = rgb2ind(im, 256);
   if t == 0
      imwrite(imind, cm, 'out.gif', 'gif', 'Loopcount', inf, 'DelayTime', 0.1); 
   else
      imwrite(imind, cm, 'out.gif', 'gif', 'WriteMode', 'append', 'DelayTime', 0.1);
   end
end

Approximation to the negative continuous Laplacian

The graph Laplacian matrix can be further viewed as a matrix form of an approximation to the (positive semi-definite) Laplacian operator obtained by the finite difference method.Neumann boundary condition, i.e., free boundary.

In Directed Multigraphs

An analogue of the Laplacian matrix can be defined for directed multigraphs.[7] In this case the Laplacian matrix L is defined as

Laplacian matrix(转)

where D is a diagonal matrix with Di,i equal to the outdegree of vertex i and A is a matrix with Ai,j equal to the number of edges from i to j (including loops).

See also

References

 
  • MathWorld.
  • 0-8218-0315-8.
  • 0821803158.
  • 0199206651.
  • .
  1. 0097-3165.
  • T. Sunada, Discrete geometric analysis, Proceedings of Symposia in Pure Mathematics, (ed. by P. Exner, J. P. Keating, P. Kuchment, T. Sunada, A. Teplyaev), 77 (2008), 51-86.
  • B. Bollobaás, Modern Graph Theory, Springer-Verlag (1998, corrected ed. 2013), ISBN 0-387-98488-7, Chapters II.3 (Vector Spaces and Matrices Associated with Graphs), VIII.2 (The Adjacency Matrix and the Laplacian), IX.2 (Electrical Networks and Random Walks).

相关文章:

  • 2022-02-23
  • 2022-12-23
  • 2021-08-14
  • 2021-05-29
  • 2022-12-23
  • 2021-09-22
  • 2021-06-13
  • 2021-06-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-13
  • 2021-05-24
  • 2021-08-14
  • 2022-12-23
  • 2022-01-10
相关资源
相似解决方案