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.
bipartite-matching
Advanced tools
Finds a maximum bipartite matching in an unweighted graph. The current implementation uses the Hopcroft-Karp algorithm and runs in O(sqrt(V) * E + V) time. Works in both node.js and in a browser.
var findMatching = require("bipartite-matching")
console.log(findMatching(5, 5, [
[0, 0],
[0, 1],
[1, 0],
[2, 1],
[2, 2],
[3, 2],
[3, 3],
[3, 4],
[4, 4]
]))
npm install bipartite-matching
require("bipartite-matching")(n, m, edges)
Computes a bipartite matching for the graph
n
is the number of vertices in the first componentm
is the number of vertices in the second componentedges
is the list of edges, represented by pairs of integers between 0 and n-1,m-1 respectively.Returns A list of edges representing the matching
(c) 2014 Mikola Lysenko. MIT License
FAQs
Maximum unweighted bipartite matching
We found that bipartite-matching 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.