# reduce-simplicial-complex

> Cancels oppositely oriented cells in a simplicial complex

Latest version **1.0.0** (published 2015-06-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install reduce-simplicial-complex
pnpm add reduce-simplicial-complex
yarn add reduce-simplicial-complex
bun add reduce-simplicial-complex
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-06-20 |
| First published | 2015-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mikola Lysenko |
| Maintainers | mikolalysenko |
| Keywords | topology, simplicial, complex, orientation, reduce, cells |

## Links

- npm: https://www.npmjs.com/package/reduce-simplicial-complex
- Repository: https://github.com/mikolalysenko/reduce-simplicial-complex
- Issues: https://github.com/mikolalysenko/reduce-simplicial-complex/issues
- npm.io page: https://npm.io/package/reduce-simplicial-complex

## Dependencies (3)

- [compare-cell](https://npm.io/package/compare-cell.md) ^1.0.0
- [cell-orientation](https://npm.io/package/cell-orientation.md) ^1.0.1
- [compare-oriented-cell](https://npm.io/package/compare-oriented-cell.md) ^1.0.1

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-06-20

## README

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.

# Example

```javascript
var reduceCells = require('reduce-simplicial-complex')

var cells = [
  [1, 2, 3],
  [2, 1, 3],
  [3, 2, 1],
  [4, 5, 6],
  [7, 8]
]

console.log(reduceCells(cells))
```

# Install

```
npm i reduce-simplicial-complex
```

# API

#### `require('reduce-simplicial-complex')(cells)`
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()`.

# License
(c) 2015 Mikola Lysenko. MIT License

---
_Source: https://npm.io/package/reduce-simplicial-complex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
