Comparing version 0.1.23 to 0.1.24
@@ -8,5 +8,6 @@ declare class Dijkstra { | ||
create(times: number[][], numNodes: number): void; | ||
adjacentList(): number[][][]; | ||
get adjacentList(): number[][][]; | ||
shortestPath(k: number): number; | ||
get distances(): number[]; | ||
} | ||
export { Dijkstra }; |
@@ -26,5 +26,9 @@ "use strict"; | ||
}; | ||
Dijkstra.prototype.adjacentList = function () { | ||
return this._adjList; | ||
}; | ||
Object.defineProperty(Dijkstra.prototype, "adjacentList", { | ||
get: function () { | ||
return this._adjList; | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
Dijkstra.prototype.shortestPath = function (k) { | ||
@@ -52,4 +56,11 @@ var queue = new priorityQueue_1.PriorityQueue(this._comparator); | ||
}; | ||
Object.defineProperty(Dijkstra.prototype, "distances", { | ||
get: function () { | ||
return this._distances; | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
return Dijkstra; | ||
}()); | ||
exports.Dijkstra = Dijkstra; |
{ | ||
"name": "flex-algo", | ||
"version": "0.1.23", | ||
"version": "0.1.24", | ||
"description": "\"SDK for commonly used data structure and algorithms\"", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32333
873