Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Flexible and Powerful JavaScript Graph Library
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
LICENSE
README.md
graphite.js
package.json

README.md

Graphite

Graphite is a graph library for JavaScript.

Example

var nodes = [
    new graphite.Node(),
    new graphite.Node(),
    new graphite.Node(),
    new graphite.Node()
];
var edges = [
    new graphite.Edge(nodes[0], nodes[1]),
    new graphite.Edge(nodes[0], nodes[2]),
    new graphite.Edge(nodes[0], nodes[3]),
    new graphite.Edge(nodes[1], nodes[2]),
    new graphite.Edge(nodes[1], nodes[3]),
    new graphite.Edge(nodes[2], nodes[3])
];
var graph = new graphite.Graph(nodes, edges);

TODO

  1. Implement shortest-path algorithm (dijkstra?)
  2. Implement minimum-spanning-tree algorithm
  3. Implement topological sort.

All of the above will be implemented with the ability to pass a callback to the functions which calculates edge weight.

Something went wrong with that request. Please try again.