
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
The Munkres module provides an O(n³) implementation of the Munkres algorithm (also called the Hungarian algorithm or the Kuhn-Munkres algorithm). The algorithm models an assignment problem as an N×M cost matrix, where each element represents the cost of assigning the ith worker to the jth job, and it figures out the least-cost solution, choosing a single item from each row and column in the matrix, such that no row and no column are used more than once.
var munkres = require('munkres-js');
munkres([
[400, 150, 400],
[400, 450, 600],
[300, 225, 300]
])
// => [ [ 0, 1 ], [ 1, 0 ], [ 2, 2 ] ]
Returns the list of matrix indices corresponding to the optimal assignment.
When used in the browser, the global computeMunkres
function is exposed.
See the docs in munkres.js for more details.
This module is a translation of a Python implementation by Brian Clapper.
The original implementation is based on http://csclab.murraystate.edu/~bob.pilgrim/445/munkres.html.
It is available via bower
and npm
as munkres-js
.
© 2014 Anna Henningsen (Conversion to JS)
© 2008 Brian M. Clapper
Apache License 2.0. See accompanying LICENSE file.
FAQs
Munkres (aka Hungarian) algorithm for JS
The npm package munkres-js receives a total of 20,390 weekly downloads. As such, munkres-js popularity was classified as popular.
We found that munkres-js 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.