Skip to content

laplacian

laplacian(W, opts?): number[][]

Defined in: packages/pleco-xa/src/linalg/laplacian.js:87

Normalized graph Laplacian of a dense weight matrix.

Float64Array<ArrayBufferLike>[] | number[][] | { flat: ArrayLike<number>; n: number; }

Weight/adjacency matrix as a 2D array of rows, or { flat, n } (row-major).

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).

number[][]

The n×n Laplacian as an array of Float64Array rows.