From IT Skills
Revision as of 18:02, 17 February 2017 by Waiter (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

I built VivaGraph to learn javascript two years ago. I definitely learned a lot and vivagraph itself is a pretty decent graph drawing library.

However vivagraph is built in monolithic way. For example, if I wanted to add new streaming traversal API I could not justify it inside monolithic "graph drawing" library.

Ngraph opens huge possibilities, with each module being available on npm.

It is designed to be extensible and to support different rendering engines and layout algorithms.

VivaGraph it's a free and open source tool for graph visualization tool - but it has a smaller community compared to Sigmajs. It has the zoom feature but no 3d. Impressive animation of loading!

supports WebGL, SVG

var graph = Viva.Graph.graph();
// Construct the graph
graph.addNode('anvaka', {url : ''});
graph.addNode('dimapasko', {url : ''});

graph.addLink('anvaka', 'dimapasko');

// Set custom nodes appearance
var graphics = Viva.Graph.View.svgGraphics();
graphics.node(function(node) {
       // The function is called every time renderer needs a ui to display node
       return Viva.Graph.svg('image')
             .attr('width', 24)
             .attr('height', 24)
             .link(; // holds custom object passed to graph.addNode();
    .placeNode(function(nodeUI, pos){
        // Shift image to let links go to the center:
        nodeUI.attr('x', pos.x - 12).attr('y', pos.y - 12);

var renderer = Viva.Graph.View.renderer(graph,
        graphics : graphics