simplicial-cartesian-product
Cartesian product of simplicial complexes
npm install simplicial-cartesian-product
Want to see pretty graphs? Log in now!
3 | downloads in the last week |
10 | downloads in the last month |
Last Published By | |
---|---|
Version | 0.0.0 last updated a year ago |
License | MIT |
Keywords | cartesian, product, simplicial, complex, topology, geometry, math, graph, edge, vertex |
Repository | git://github.com/mikolalysenko/simplicial-cartesian-product.git (git) |
Dependencies | simplicial-complex |
Dependents | grid-graph, mikolalysenko-hoarders |
simplicial-cartesian-product
Constructs the cartesian product of two graphs. (Not to be confused with the tensor/categorical product.)
Install
npm install simplicial-cartesian-product
Example
var prod = require("simplicial-cartesian-product")
console.log(prod([[0,1]], [[0,1]]))
require("graph-cartesian-product")(a, b)
Given a pair of simplicial complexes, produces their cartesian product.
a
andb
are simplicial complexes
Returns: The cartesian product of a
and b
. New vertex coordinates are of the form a_index + b_index * countVertices(a)
Credits
(c) 2013 Mikola Lysenko. MIT License