views:

80

answers:

1

Exists an algorithm that calculate the position of nodes of a connected graph? I like to draw the nodes of the graph as HTML DIV and have an algorithm that allows to positionate the nodes on the html page (using absolute position) according to the connections , like a mind map.

A: 

Generate SVG from dot, and write an XSLT that translates the SVG xml into the required HTML (on the server side).

Or, if you don't care about IE versions less than 9, just serve the SVG

Rob Fonseca-Ensor
Without SVG? i would use only css and html. The arrows can be displayed using canvas, but i have problems to calculate the node position on the page.
Simone Vellei
Rob Fonseca-Ensor