$ npm install simplicial-cartesian-productConstructs the cartesian product of two graphs. (Not to be confused with the tensor/categorical product.)
npm install simplicial-cartesian-product
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 and b are simplicial complexesReturns: The cartesian product of a and b. New vertex coordinates are of the form a_index + b_index * countVertices(a)
(c) 2013 Mikola Lysenko. MIT License