Node Dijkstra Versions Save

A NodeJS implementation of Dijkstra's algorithm

v2.5.0

7 years ago

Added

  • avoid option in Graph#path

You can now pass an array of nodes to avoid when computing the path.

Example:

route.path('A', 'D', { avoid: ['C', 'F'] });

Thanks @doesntgolf for the contribution!

v2.4.1

7 years ago
  • Add browserify.transform option to package.json to allow usage with browserify - Thanks to @kronick

v2.4.0

7 years ago

Added

  • Pass a deep Map to Graph constructor and a Map to Graph#addNode, thus allowing using numbers as keys for the graph.

v2.3.0

7 years ago

Added

  • Graph#removeNode Ability to remove a previously set node from the graph, including all it's references

v2.2.1

8 years ago

Fixed

  • Fixed naming error in README.md documentation
  • Improved inline documentation

Added

  • Transpiled distribution for usage in the browser

v2.2.0

8 years ago

IMPORTANT: The releases from v2.1.1 to v2.1.2 are failing the builds due to code styling issues. They can be considered safe to use.

Changed

  • Using NodeJS v4.0.0
  • Updated documentation to mention NodeJS v4.0.0

v2.1.0

8 years ago

The focus of this release is performance.

The algorithm implementation has been rewritten to use more efficient mechanics.

Added

  • Graph#path can now accept a cost option and return an object containing the cost of the found path

Deprecated

  • Graph#addVertex, use Graph#addNode instead
  • Graph#shortestPath, use Graph#path instead

v2.0.0

8 years ago

:tada: Now using ES6

Breaking Changes:

  • Not compatible with NodeJS
  • Use ES6 Classes
  • Use const and let
  • Use ES6 Map
  • Graph#shortestPath is now Graph#path

Improvements

  • Validation on the provided objects

v1.1.3

8 years ago

Changed

  • Updated dependencies to the latest version

v1.1.2

9 years ago

Changed

  • Updated 101 to latest version