[lang]

Present Perfect

Personal
Projects
Packages
Patches
Presents
Linux

Picture Gallery
Present Perfect

graphviz question

Filed under: Hacking — Thomas @ 10:38

2007-10-28
10:38

While procrastinating about drawing up some process diagrams to visualize integration tasks, I came across graphviz. By came across, I mean, I finally really looked at it after all those brief encounters with its use our output in other tools.

While it seems incredibly handy to be able to describe graphs programatically, it does have a painful learning curve. If you disagree, try running "dotty", the visual editor :)

Anyway, here's something right off the bat I can't figure out: the documented shapes include note and tab, but when I use that as a shape attribute value, dot complains. I can't figure out any way of listing supported node shape types either.

Any graphviz expert care to throw me a bone ?

On a related note, any idea why there is no shape for the common flowchart symbol for documentation, which is a rectangle with the bottom side as a one-period sine wave ?

3 Comments »

  1. > note and tab

    You need the latest development version for these.

    > listing supported node shape types

    1. Get graphviz version (dot -V).
    2. Get the appropriate source tarball.
    3. Look at the definition of Shapes in lib/common/shapes.c.

    In 2.14.1 the shapes are:
    box
    polygon
    ellipse
    oval
    circle
    point
    egg
    triangle
    none
    plaintext
    diamond
    trapezium
    parallelogram
    house
    pentagon
    hexagon
    septagon
    octagon
    rect
    rectangle
    doublecircle
    doubleoctagon
    tripleoctagon
    invtriangle
    invtrapezium
    invhouse
    Mdiamond
    Msquare
    Mcircle
    record
    Mrecord
    epsf

    Comment by Bob Anderson — 2007-10-28 @ 17:21

  2. Perhaps if you posted the code you tried and didn’t work?

    Comment by Soren — 2007-10-28 @ 18:32

  3. Just some notes on prettying up the graphs.
    http://www.karakas-online.de/forum/viewtopic.php?t=2647

    Comment by Graphviz user — 2007-10-30 @ 23:57

RSS feed for comments on this post. TrackBack URL

Leave a comment

picture