UNPKG

ts-ds-tool

Version:

Data structure and algorithm of TypeScript

10 lines (9 loc) 279 B
import { Graph } from "../../../graph/Graph"; import { GraphVertex } from "../../../graph/GraphVertex"; export declare function dijkstra<T>(graph: Graph<T>, startVertex?: GraphVertex<T>): { distance?: undefined; prev?: undefined; } | { distance: {}; prev: {}; };