1.0.0 • Published 9 years ago

flowgraph v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

flowgraph

NPM

Model for a graph with in and outports.

It is mainly for being used as a model for flowgraph-editor.

Example

var FlowGraph = require('flowgraph')

// define your graph
graph = new FlowGraph()
graph.addNode('A', ['in'], ['out'])
graph.addNode('B') // default ports are in and out
graph.addNode('C', ['1', '2', '3'], ['stdout', 'stderr'])
graph.connect('B', 'C', 'out', '2')