Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/simplicial-complex-compare
A total order on simplicial complexes
https://github.com/mikolalysenko/simplicial-complex-compare
Last synced: 7 days ago
JSON representation
A total order on simplicial complexes
- Host: GitHub
- URL: https://github.com/mikolalysenko/simplicial-complex-compare
- Owner: mikolalysenko
- License: mit
- Created: 2015-06-20T17:17:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-20T17:18:21.000Z (over 9 years ago)
- Last Synced: 2024-12-16T22:35:39.871Z (10 days ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
simplicial-complex-compare
==========================
A total order on unoriented simplicial complexes. Can be used to test for equality.# Example
```javascript
var sccmp = require('simplicial-complex-compare')var a = [
[1, 2, 3],
[3, 2, 4]
]var b = [
[2, 4, 3],
[3, 1, 2]
]//Test if a is equivalent to b
console.log(sccmp(a,b) === 0)
```# Install
```
npm i simplicial-complex-compare
```# API
#### `require('simplicial-complex-compare')(a, b)`
Test if two 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
# License
(c) 2015 Mikola Lysenko. MIT License