10 lines
278 B
TypeScript
10 lines
278 B
TypeScript
export declare namespace Dijkstra {
|
|
type AdjacencyList = {
|
|
[key: string]: string[];
|
|
};
|
|
type Weight = (u: string, v: string) => number;
|
|
function run(adjacencyList: AdjacencyList, source: string, weight?: Weight): {
|
|
[key: string]: string;
|
|
};
|
|
}
|