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 − Aof a weighted graph, as a dense matrix, and the degrees (SciPy’slaplacian).Ais the weighted adjacency matrix (parallel edges summed, loops ignored) andDthe diagonal of degrees: the in-degrees (column sums) by default, the out-degrees (row sums) withuse_out_degree; the two agree for undirected graphs. Withnormed, the symmetric normalisationI − 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.