reduce-simplicial-complex
Version:
Cancels oppositely oriented cells in a simplicial complex
40 lines (27 loc) • 854 B
Markdown
reduce-simplicial-complex
=========================
Given an oriented simplicial complex, this module computes a minimal basis for the complex in the integer homology sense. That is, it cancels out all pairs of equivalent cells which have opposite orientation.
```javascript
var reduceCells = require('reduce-simplicial-complex')
var cells = [
[],
[],
[],
[],
[]
]
console.log(reduceCells(cells))
```
```
npm i reduce-simplicial-complex
```
Cancels all pairs of oppositely oriented cells
* `cells` is an array of cells
**Returns** A collapsed list of cells
**Note** This is done in place. If you need a copy, you should make a copy first, for example using `cells.slice()`.
(c) 2015 Mikola Lysenko. MIT License