laplacian

Syntax

Description

L = laplacian(G)
returns the graph Laplacian matrix, L. Each diagonal entry,
L(j,j), is given by the degree of node j,
degree(G,j). The off-diagonal entries of L
represent the edges in G such that L(i,j) = L(j,i) =
-1 if there is an edge between nodes i and
j; otherwise, L(i,j) = L(j,i) = 0.