Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/stars
Vertex stars of simplicial complexes
https://github.com/mikolalysenko/stars
Last synced: about 2 months ago
JSON representation
Vertex stars of simplicial complexes
- Host: GitHub
- URL: https://github.com/mikolalysenko/stars
- Owner: mikolalysenko
- License: mit
- Created: 2013-04-01T12:53:16.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-04-30T23:22:02.000Z (over 10 years ago)
- Last Synced: 2024-10-20T14:27:53.038Z (2 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 3
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
stars
=====
Computes vertex stars of a simplicial complex.# Example
```javascript
var stars = require("stars")console.log(stars([
[0, 1],
[1, 2],
[3, 4, 5],
[1, 3],
[5, 0]
])
```Output:
```javascript
[ [ 1, 5 ], [ 0, 2, 3 ], [ 1 ], [ 1, 4, 5 ], [ 3, 5 ], [ 0, 3, 4 ] ]
```# Install
```
npm install stars
```# API
#### `require("stars")(cells[, numVertices])`
Computes the vertex stars of a simplicial complex.* `cells` is an array of vertex indices
* `numVertices` is an optional integer representing the number of vertices**Returns:** An array of size `numVertices` giving the set of all other vertices incident to each vertex.
Credits
=======
(c) 2013 Mikola Lysenko. MIT License