src/algorithms/dijkstra-binary-heap.js
/**
* @license
* pathfinding-visualiser <http://github.com/Tyriar/pathfinding-visualiser>
* Copyright 2014 Daniel Imms <http://www.growingwiththeweb.com>
* Released under the MIT license <http://github.com/Tyriar/pathfinding-visualiser/blob/master/LICENSE>
*/
(function (root, factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['dijkstra-heap', 'fibonacci-heap'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('./dijkstra-heap'),
require('../../bower_components/js-data-structures/lib/binary-heap'));
}
}(this, function (dijkstraHeap, BinaryHeap) {
'use strict';
var module = {};
module.run = function (map, callback) {
dijkstraHeap.run(map, callback, BinaryHeap);
};
return module;
}));