
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
bipartite-independent-set
Advanced tools
This modules computes a maximum independent set for a bipartite graph. It takes O(sqrt(V) * E) time.
var bipartiteIndependentSet = require("bipartite-independent-set")
var s = bipartiteIndependentSet(4, 4, [
[0, 1],
[1, 0],
[1, 1],
[1, 2],
[2, 1],
[3, 2],
[3, 3]
])
// s = [ [ 0, 2, 3 ], [ 0, 2 ] ]
npm install bipartite-independent-set
require("bipartite-independent-set")(n, m, edges)Finds a maximum independent set for the given bipartite graph.
n is a the number of vertices in the first componentm is the number of vertices in the second componentedges is a list of edges in the bipartite graph represented by pairs of integersReturns A pair of lists representing the maximum independent set for the graph
(c) 2014 Mikola Lysenko. MIT License
FAQs
Maximum independent set for bipartite graph
The npm package bipartite-independent-set receives a total of 4 weekly downloads. As such, bipartite-independent-set popularity was classified as not popular.
We found that bipartite-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
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.