@endo/compartment-mapper
Version:
The compartment mapper assembles Node applications in a sandbox
18 lines (16 loc) • 317 B
text/typescript
/**
* Types for the `generic-graph` module
*
* @module
*/
/**
* Context used for shortest-path traversal algorithm
*
* @template T The type of nodes in the graph
* @internal
*/
export interface TraversalContext<T = string, U = number> {
distances: Map<T, U>;
predecessors: Map<T, T>;
queue: Set<T>;
}