Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flex-algo

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flex-algo - npm Package Compare versions

Comparing version 0.1.20 to 0.1.21

11

lib/graph.d.ts
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc