Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript library for graphs (in the mathematical sense) [closed]

Are there any significant Javascript libraries for graph and network representation, with common algorithms, optimization, etc.? I'm imagining something like the C++ lemon library, with graph search, shortest path, maximum flow, and so on.

Google draws a blank, because the results are completely flooded with graph- and chart-drawing libraries.

like image 1000
jameshfisher Avatar asked Jun 23 '11 14:06

jameshfisher


2 Answers

Take a look at http://www.graphdracula.net/

It's got a number of algorithms including:

  • bellman-ford
  • dijkstra
  • floyd-warshall
like image 71
tskuzzy Avatar answered Oct 06 '22 00:10

tskuzzy


You may be interested in Cytoscape.js, an open-source JS graph theory library. It can be run headlessly or with an interactive visualisation. It is styleable via CSS-like files, has built in gestures, support for touch devices, node.js, etc.

There's a bunch of algorithms now, and there will be many more shortly -- i.e. more complex algorithms like PageRank etc.

http://cytoscape.github.io/cytoscape.js/

Disclaimer: I work on the project

like image 43
maxkfranz Avatar answered Oct 06 '22 01:10

maxkfranz