Coder Social home page Coder Social logo

lattice-automation / constellation-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hicsail/constellation-js

1.0 3.0 0.0 52.22 MB

Library for combinatorially specifying, constraining, and exploring genetic design spaces.

Home Page: https://github.com/hicsail/constellation-js

License: MIT License

JavaScript 99.30% HTML 0.70%

constellation-js's Introduction

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

constellation-js's People

Contributors

dany-fu avatar frederickjansen avatar gxavier38 avatar lapets avatar lucyq avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.