oriented-simplicial-complex-compare
Version:
A total order on simplicial complexes
41 lines (28 loc) • 769 B
Markdown
oriented-simplicial-complex-compare
==========================
A total order on oriented simplicial complexes. Can be used to test for equality.
```javascript
var sccmp = require('oriented-simplicial-complex-compare')
var a = [
[ ],
[ ]
]
var b = [
[ ],
[ ]
]
//Test if a is equivalent to b
console.log(sccmp(a,b) === 0)
```
```
npm i oriented-simplicial-complex-compare
```
Test if two oriented simplicial complexes are equal or orders them.
* `a,b` are lists of cells
**Returns** `0` if `a` and `b` are equal, otherwise a number which gives their order relative to one another
(c) 2015 Mikola Lysenko. MIT License