MCPcopy
hub / github.com/yangshun/lago / Graph

Interface Graph

src/algorithms/breadthFirstSearch.ts:4–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import nullthrows from '../utils/nullthrows';
3
4interface Graph<T> {
5 [key: string]: Array<T>;
6}
7
8/**
9 * Performs a breadth-first search on a graph given a starting node.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected