anvaka / ngraph.pixel

Fast graph renderer based on low level ShaderMaterial from three.js
https://github.com/anvaka/ngraph.pixel#demo
MIT License
319 stars 45 forks source link

Adding node and link after render #11

Open hurkanakbiyik opened 7 years ago

hurkanakbiyik commented 7 years ago

Is that possible to adding nodes and links to graph after renderGraph function?

How can i do that?

var graph = require('ngraph.graph')();
graph.addLink(1, 2);

var renderGraph = require('ngraph.pixel');
var renderer = renderGraph(graph);

//this is not working
graph.addLink(2, 3);