graph_compute_laplacian_matrix
graph_compute_laplacian_matrix(graph, result, node_indices)
Computes the Laplacian matrix of a graph. Does NOT clear the matrix before writing.
Kind: global function
| Param | Type | Description |
|---|---|---|
| graph | Graph.<T> | Input graph. |
| result | SquareMatrix | Output: Laplacian matrix (modified in-place). |
| node_indices | Map.<T, number> | Map from graph nodes to matrix indices. |