Skip to content
Library for combinatorially specifying, constraining, and exploring genetic design spaces.
Branch: master
Clone or download
Latest commit caf5084 May 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demos
lib updated unit tests May 1, 2019
test updated unit tests May 1, 2019
.editorconfig
.eslintignore
.eslintrc.js
.gitignore Add istanbul and coveralls Jun 29, 2018
.npmignore
.travis.yml Add istanbul and coveralls Jun 29, 2018
LICENSE Create LICENSE Dec 5, 2017
README.md Add istanbul and coveralls Jun 29, 2018
index.html Add default redirect for GitHub page. Feb 11, 2018
output.txt
package-lock.json
package.json

README.md

constellation-js

Build Status npm versionCoverage Status

Quickstart

npm install constellation-js
const constellation = require('constellation-js');
var langText = '{a . b}';
var categories = {'a': ['a1', 'a2'], 'b': ['b1']};
var numDesigns = 3;
var cycleDepth = 1

var result = constellation(langText, categories, numDesigns, cycleDepth);

Demos

node demos/server.js

Then view the demo in a browser at http://localhost:8082/.

Dependencies

Supported Operators

a
atom

a or b
or

a then b
then

zero-or-more a
zero

one-or-more a
one

Example

Specification

one-or-more (a or (a then (zero-or-more b)))

Part Categories

{"a": ["a1", "a2"],
"b": ["b1", "b2"]}

Results
Graph
screen shot 2018-01-07 at 5 24 17 pm

Designs:

[
	"a1,b1",
	"a1,b2",
	"a2,b1",
	"a2,b2",
	"a1",
	"a2"
]

Data Structures

Boundary Graph

Node Object

Example

{
  "id": "604571a7-9e38-4647-afd0-9546399480b5",
  "text": "root",
  "type": "root",
  "edges": [
    "b79407eb-95f0-4b78-99da-779f2c9cad46",
    "7f6ca2fb-ef67-4687-924c-4285de896877"]
}
You can’t perform that action at this time.