constellation-js
Constellation is a tool for parsing a language specifying genetic parts and their relationships
Last updated 2 years ago by lucyq .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install constellation-js 
SYNC missed versions from official npm registry.

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"]
}

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

2 Versions

  • 1.0.0                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 1
Dependencies (6)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |