@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
11 lines • 640 B
TypeScript
/**
* Computes the adjacency matrix of a graph.
* Writes 1 to matrix elements where nodes are connected, leaves existing values where there are no connections.
* Does NOT zero-fill the matrix before writing.
* @template T Type of the graph's nodes.
* @param {Graph<T>} graph Input graph.
* @param {SquareMatrix} result Output: Adjacency matrix (modified in-place).
* @param {Map<T,number>} node_indices Map from graph nodes to matrix indices.
*/
export function graph_compute_adjacency_matrix<T>(graph: Graph<T>, result: SquareMatrix, node_indices: Map<T, number>): void;
//# sourceMappingURL=graph_compute_adjacency_matrix.d.ts.map