Computes vertex stars of a simplicial complex.
var stars = require("stars")
console.log(stars([
[0, 1],
[1, 2],
[3, 4, 5],
[1, 3],
[5, 0]
])
Output:
[ [ 1, 5 ], [ 0, 2, 3 ], [ 1 ], [ 1, 4, 5 ], [ 3, 5 ], [ 0, 3, 4 ] ]
npm install stars
require("stars")(cells[, numVertices])Computes the vertex stars of a simplicial complex.
cells is an array of vertex indicesnumVertices is an optional integer representing the number of verticesReturns: An array of size numVertices giving the set of all other vertices incident to each vertex.
(c) 2013 Mikola Lysenko. MIT License