js-shortest-path-strategies
Algorithms strategies for finding graph shortest paths
Usage
npm install js-shortest-path
GreedyStrategy
const GraphBuilder GreedStrategy = ; //Creates a graphconst graph = ; const greedy = ; //Prints all paths from S to Cconsole; //Prints the shortest path from S to Cconsole;
DijkstraStrategy
const GraphBuilder DijkstraStrategy = ; //Creates a graphconst graph = ; const dijkstra = ; //Prints the shortest path from S to Cconsole;