UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

11 lines 580 B
/** * Computes the Laplacian matrix of a graph. * Does NOT clear the matrix before writing. * @template T Type of graph nodes. * @param {Graph<T>} graph Input graph. * @param {SquareMatrix} result Output: Laplacian matrix (modified in-place). * @param {Map<T,number>} node_indices Map from graph nodes to matrix indices. */ export function graph_compute_laplacian_matrix<T>(graph: Graph<T>, result: SquareMatrix, node_indices: Map<T, number>): void; import { SquareMatrix } from "../math/matrix/SquareMatrix.js"; //# sourceMappingURL=graph_compute_laplacian_matrix.d.ts.map