npm.io
1.0.0 • Published 11 years ago

flowgraph

Licence
MIT
Version
1.0.0
Deps
4
Vulns
0
Weekly
0
Stars
4

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')

Keywords