Vietoris-Rips complex builder
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.
Installation
npm install vr-complex
or in browser
bower install vr-complex
Usage
Building complex (Betti numbers)
var VR = require('vr-complex');
var vr = new VR();
var cells = [
[0, 0],
[1, 1],
];
var maxK = 3;
var R = 10;
var simplices = vr.complex(cells, maxK, R);
Computing homology
var simplices = vr.complex(cells, maxK, R);
var homology = vr.homology(3);
Test
To test, install mocha
globally and run following command:
npm test
Future releases