Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
maximal-independent-set
Advanced tools
Finds a maximal independent vertex set. No guarantees that it is maximum.
npm install maximal-independent-set
var independetSet = require("maximal-independent-set")
//Generate a graph
console.log(independentSet(
[[1, 3],
[0, 2],
[3, 1],
[0, 2]]))
require("maximal-independent-set")(adjacency_list[, result])
Given a graph encoded as an adjacency list, compute a maximal independent vertex set (aka vertex packing).
adjacency_list
is an array with length = number of vertices, where each ith entry is an array representing the neighbors of vertex i. If your graph is encoded as an edge list instead of an adjacency list, you can use the stars
npm module to make the necessary conversion.result
is an optional array that gets the result of the independent set. If not specified, a new Uint8Array is created.Returns A vector whose ith entry determines whether the vertex is contained in the independent set or not
(c) 2013 Mikola Lysenko. MIT License
FAQs
Maximal independent vertex sets
The npm package maximal-independent-set receives a total of 0 weekly downloads. As such, maximal-independent-set popularity was classified as not popular.
We found that maximal-independent-set demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.