# dijkstrajs.js

[![NPM](https://nodei.co/npm/dijkstrajs.png)](https://nodei.co/npm/dijkstrajs/)

[![Build Status](https://api.travis-ci.org/tcort/dijkstrajs.png?branch=master)](http://travis-ci.org/tcort/dijkstrajs)

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

* [nodejs](http://nodejs.org/)

## Installation

    npm install dijkstrajs

## Examples

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

