/** * Normalized graph Laplacian of a dense weight matrix. * * @param {number[][]|Float64Array[]|{flat: ArrayLike, n: number}} W * Weight/adjacency matrix as a 2D array of rows, or `{ flat, n }` (row-major). * @param {object} [opts] * @param {boolean} [opts.normed=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 {number[][]} The n×n Laplacian as an array of Float64Array rows. */ export function laplacian(W: number[][] | Float64Array[] | { flat: ArrayLike; n: number; }, { normed }?: { normed?: boolean; }): number[][];