Comparing version 0.1.20 to 0.1.21
declare class Graph { | ||
_adjList: number[][]; | ||
_indegrees: number[]; | ||
_nodes: number; | ||
private _adjList; | ||
private _indegrees; | ||
private _nodes; | ||
constructor(); | ||
@@ -9,10 +9,11 @@ create(vectors: number[][], nodes: number): void; | ||
createCourseGraph(courses: number[][], numCourses: number): void; | ||
_dfsInformTime(vertex: number, informTime: number[]): number; | ||
private _dfsInformTime; | ||
informTime(headID: number, informTime: number[]): number; | ||
adjacentList(): number[][]; | ||
_dfs(vertex: number, values: number[], seen: boolean[]): void; | ||
private _dfs; | ||
dfs(vertex: number): number[]; | ||
bfs(vertex: number): number[]; | ||
isAcyclic(): boolean; | ||
indegrees(): number[]; | ||
} | ||
export { Graph }; |
@@ -122,4 +122,7 @@ "use strict"; | ||
}; | ||
Graph.prototype.indegrees = function () { | ||
return this._indegrees; | ||
}; | ||
return Graph; | ||
}()); | ||
exports.Graph = Graph; |
{ | ||
"name": "flex-algo", | ||
"version": "0.1.20", | ||
"version": "0.1.21", | ||
"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
29388
794