Euler characteristic for simplicial complexes
npm install euler-characteristiceuler-characteristic
====================
Computes the Euler characteristic of a simplicial complex, ignoring duplicate cells.
npm install euler-characteristic
``javascript
var euler = require("euler-characteristic")
//Compute Euler characteristic of circle
console.log(euler([[0,1], [1,2], [2,0]])) //Prints: 0
//Compute Euler characteristic of Stanford bunny
console.log(euler(require("bunny"))) //Prints: 2
//(the bunny is homotopic to a sphere after all)
`
* cells` is a simplicial complex
Returns An integer representing the Euler characteristic of the cell complex