Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Small library for building Vietoris-Rips Complex using incremental algorithm as described in the following paper: "Fast Construction of the Vietoris-Rips Complex" by Afra Zomorodian.
Construction of Vietoris-Rips Complex is much faster than Cech Complex so it has more practical applications.
npm install vr-complex
or in browser
bower install vr-complex
Building complex (Betti numbers)
var VR = require('vr-complex');
var vr = new VR();
var cells = [
[0, 0], // [x, y]
[1, 1],
// ...
];
var maxK = 3; // maximum size of simplex (0 - point, 1 - edge, 2 - triangle, ...)
var R = 10; // radius
var simplices = vr.complex(cells, maxK, R);
/*
[
[[0], [1], ... ], // 0-simplex (points)
[[0,1], [0,5], ...], // 1-simplex (edges)
[[0,1,5], [0,1,9], ...], // 2-simplex (triangles)
... // 3-simplex (tetrahedrons)
]
*/
Computing homology
var simplices = vr.complex(cells, maxK, R); // compute simplices
var homology = vr.homology(3); // compute first 3 Betti numbers
To test, install mocha
globally and run following command:
npm test
FAQs
Vietrois-Rips complex builder
We found that vr-complex 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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.