laplacian
laplacian(
W,opts?):number[][]
Defined in: packages/pleco-xa/src/linalg/laplacian.js:87
Normalized graph Laplacian of a dense weight matrix.
Parameters
Section titled “Parameters”Float64Array<ArrayBufferLike>[] | number[][] | { flat: ArrayLike<number>; n: number; }
Weight/adjacency matrix as a 2D array of rows, or { flat, n } (row-major).
normed?
Section titled “normed?”boolean = true
When true, returns the symmetric
normalized Laplacian I − D^{-1/2} W D^{-1/2}. When false, returns the
combinatorial Laplacian D − W (both with scipy’s zeroed-diagonal degrees).
Returns
Section titled “Returns”number[][]
The n×n Laplacian as an array of Float64Array rows.