Modify A Javascript Demo

The demo at http://blog.ivank.net/force-based-graph-drawing-in-javascript.html uses a predefined graph structure.

I want you to modify this to allow me to add an edge dynamically at any time. I also want the drawing code removed and instead provide two methods which accepts a callback one of the methods iterates over all the edges and passes each edge to the callback and the other method iterates over all the Vertices in the graph passing each one to the callback.

Each Vertex’s x,y,z posit…

Leave a Reply

Your email address will not be published. Required fields are marked *