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.
edges-to-adjacency-list
Advanced tools
Converts a collection of edges in a graph to an adjacency list representation. For the more general operation on simplicial complexes, use the stars
module.
var e2a = require("edges-to-adjacency-list")
console.log(e2a([
[0, 1],
[1, 2],
[2, 3]
]))
Output:
[ [1],
[0, 2],
[1, 3],
[2]
]
npm install edges-to-adjacency-list
require("edges-to-adjacency-list")(edges[, numVertices])
Converts a collection of edges to an adjacency list representation.
edges
are the edges of the graphnumVertices
is an optional parameter giving the number of vertices in the graphReturns An array encoding the adjacency list of the graph
Note Repeated edges will be combined.
(c) 2014 Mikola Lysenko. MIT License
FAQs
Convert a list of edges to an adjacency list
The npm package edges-to-adjacency-list receives a total of 17,246 weekly downloads. As such, edges-to-adjacency-list popularity was classified as popular.
We found that edges-to-adjacency-list 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.