JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7509745
  • Score
    100M100P100Q198507F
  • License MIT

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

Package Exports

  • dijkstrajs
  • dijkstrajs/dijkstra.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (dijkstrajs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

dijkstrajs.js

dijkstrajs is a simple JavaScript implementation of Dijkstra's single-source shortest-paths algorithm.

The code was originally written by Wyatt Baldwin and turned into a node module by Thomas Cort.

Requirements

Installation

npm install dijkstrajs

Examples

See test/dijkstra.test.js in the sources for some example code.