Just to keep a link to this library that seems quite powerful http://cytoscape.github.io/cytoscape.js/#demos