I want an interactive network graph for my web page. I've set up a db containing edges and nodes. I have JS functions getNode(id) and getEdge(id), which properly returns edges and nodes with their properties. I want this displayed graphically, but don't want to reinvent the wheel. I want to just pass the edge and node info, don't care much for style. Essentials: (directed) edges and nodes with labels, plus click events I can write my own methods for. Is there such a JS library?
2 Answers
You can use the JavaScript library D3.js (BSD license), it contains some nice function to present the data as an interactive network:
You can also use Linkurious.js, a Javascript toolkit to speed up the development of graph visualization and interaction applications. It is free for open source projects.
Disclaimer: I work at Linkurious SAS.