Skip to main content

Module laplacian

Module laplacian 

Source
Expand description

Graph Laplacians (SciPy’s scipy.sparse.csgraph.laplacian).

See the book entry Matchings, k shortest paths and Laplacians.

Functions§

laplacian
The Laplacian L = D − A of a weighted graph, as a dense matrix, and the degrees (SciPy’s laplacian). A is the weighted adjacency matrix (parallel edges summed, loops ignored) and D the diagonal of degrees: the in-degrees (column sums) by default, the out-degrees (row sums) with use_out_degree; the two agree for undirected graphs. With normed, the symmetric normalisation I − D^{−1/2} A D^{−1/2}, with isolated vertices left at 0 on the diagonal; the returned degrees are then their square roots (1 for isolated vertices), as SciPy returns them.