
Research
/Security News
Intercom’s npm Package Compromised in Ongoing Mini Shai-Hulud Worm Attack
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.
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 16,585 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
Compromised intercom-client@7.0.4 npm package is tied to the ongoing Mini Shai-Hulud worm attack targeting developer and CI/CD secrets.

Research
Socket detected a malicious supply chain attack on PyPI package lightning versions 2.6.2 and 2.6.3, which execute credential-stealing malware on import.

Research
A brand-squatted TanStack npm package used postinstall scripts to steal .env files and exfiltrate developer secrets to an attacker-controlled endpoint.