Dot to GDL Converter


Sample graph converted to GDL

This is a C++ program that converts GraphViz .dot files into aiSee .gdl files.

Note that the conversion is highly non-trivial due to some totally different concepts of specifying graphs. Therefore, this program is far from complete. Many files already convert nicely, however.

Sample graph converted to GDL


Example of Usage

The graph above was converted with a somewhat lengthy command that sets a few layout parameters to make the graph look nice. It converted the top right graph on this page.

dot2gdl softmaint.dot softmaint.gdl \
          --layout-algorithm forcedir \
          --gravity 0.0 --repulsion 30 --attraction 140 \
          --magnetic-field1 polar --magnetic-field2 no \
          --shape2color circle  red \
          --shape2color ellipse green

Download

Source Code

LibError is required for compilation:

Debian/Ubuntu

i386, amd64, and source packages

Alternatively, add the following to your /etc/apt/sources.lst:

deb  http://debian.theiling.de/  etch  contrib main non-free

And type:

apt-get update
apt-get install error
apt-get install error-doc

Changes

  • Version 0.1.111

    • Bug fix for compilation failure in d2g_v_char.cpp. This was actually in Erwin, which will, therefore, soon be released with that bug fix, too.
  • Version 0.1.109

    • Fix of serious bug in parsing subgraphs that frequently lead to missing edges.
  • Version 0.1.105

    • Initial Release
bar project at Freshmeat
dot2gdl project at Freshmeat
erwin project at Freshmeat
liquid project at Freshmeat
badut project at Freshmeat
pamlirc project at Freshmeat
liberror project at Freshmeat
logfiles project at Freshmeat
parrot project at Freshmeat
rushhour project at Freshmeat
transparency project at Freshmeat

Index

August 28th, 2008
Comments? Suggestions? Corrections? You can drop me a line.
zpentrabvagiktu@theiling.de
Schwerpunktpraxis