export type VertexKey = string | number; export type DijkstraResult = | { distMap: Map; distPaths?: Map; preMap: Map; seen: Set; paths: V[][]; minDist: number; minPath: V[]; } | undefined; export type GraphOptions = { vertexValueInitializer?: (key: VertexKey) => V; defaultEdgeWeight?: number; };