Number: 605
Title: Suggestion for Edge Generation in SVG
Submitter: Emanuele Ruffaldi
Date: Sat Jan 8 03:34:16 2005
Subsys: Dot
Version: 2.0
System: *-*-
Severity: minor
I had the necessity to add interactivity to the SVG graph generated by dot. In particular to be able to associate the start and end node to a specific edge.

In the current SVG generation nodes are numbered as node# where # is odd and edge# where # is pair. The problem is that there is no possibility to retrieve the end and start node from the edge#. This information is fundamental in an SVG graph where I navigate graphically the edges, and blink the end node when the navigation is terminated.

To retreive this information I had to patch the generated SVG by using the node/edge information from the DOT file. I've chosen the following notation for the id="edge#" allowing to preserve the original semantic and adding the node values:


This solution is really simple to implement, e.g.


is the edge 10, that connects the node 15th with 33rd

Great job with dot!
Fix: It's a request for feature
Owner: *
Status: Request