2

I have a list of edges where the it goes from key to value

so a => [x,y,z] meaning a is connected to x, to y and to z

I have a long list of these and I want to visualize it, preferably with javascript.

What are some known javascript packages that will do this painlessly (input edges, output graph via javascript)

Nick Ginanto
  • 31,090
  • 47
  • 134
  • 244

2 Answers2

2

I would highly recommend d3.js, the API is intuitive and does an excellent job of visualising data. Some example outputs are available here (d3noob.org) and here (bl.ocks.org).

A basic walkthrough of a creating directed graph is available from d3noob.org here.

Rich O'Kelly
  • 41,274
  • 9
  • 83
  • 114
2

You could try Cytoscape.js. It is a graph analysis and visualisation library in Javascript. http://cytoscape.github.com/cytoscape.js/

It even supports edges with endpoint markers (i.e. arrows), which are useful for directed graphs.

Disclaimer: I am involved in Cytoscape.js.

maxkfranz
  • 11,896
  • 1
  • 27
  • 36