flowgraph

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i flowgraph

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • finnpauls