UNPKG

modern-dijkstra

Version:

A modern JavaScript implementation of Dijkstra's single-source shortest-paths algorithm.

19 lines (9 loc) 463 B
# dijkstrajs.js dijkstrajs is a simple JavaScript implementation of Dijkstra's single-source shortest-paths algorithm. The code was originally written by Wyatt Baldwin, turned into a node module by Thomas Cort and modernised for ES6 JavaScript by James McIntosh. ## Requirements * [nodejs](http://nodejs.org/) ## Installation npm install modern-dijkstra ## Examples See `test/dijkstra.test.js` in the sources for some example code.