var FlowGraph = require('flowgraph')
var FlowGraphView = require('flowgraph-editor')
var insertCss = require('insert-css')
graph = new FlowGraph()
graph.addNode('A', ['in'], ['out'])
graph.addNode('B')
graph.addNode('C', ['1', '2', '3'], ['stdout', 'stderr'])
graph.connect('B', 'C', 'out', '2')
var view = new FlowGraphView(graph)
document.body.appendChild(view.svg)
view.on('node-select', function (node) {
console.log(node)
})
insertCss(FlowGraphView.css)