Trees

Documentation is coming later

Graphs

Detailed API documentation is coming later

<canvas class="graph" id="graph1" width="500" height="350"></canvas>

var graph1 = {
nodes: ['a', 'b', 'c', 'd', 'e'],
edges: [[0, 1, 1, true], [1, 2, 1], [2, 3, 1], [0, 3, 20, true], [3, 4, 1], [4, 0, 3, true]],
highlight: [1, 3, 4],
center_node: 0
}

drawGraph(graph1, 'graph1');