GSoC ’09: Mesquite

Dot language July 20, 2009

Filed under: Uncategorized — kasiahayden @ 6:22 pm

For the next part of the project, we’ll use Graphviz to visualize the annotations. The dot language behind Graphviz is really straightforward and simple.

Here are some simple examples swiped from wikipedia:

Undirected graphs versus directed graphs. First undirected:

 graph graphname {
     a -- b -- c;
     b -- d;
 }

Then, directed:

 digraph graphname {
     a -> b -> c;
     b -> d;
 }

Oh, look, different shapes and names:

 graph graphname {
     // The label attribute can be used to change the label of a node
     a [label="Foo"];
     // Here, the node shape is changed.
     b [shape=box];
     // These edges both have different line properties
     a -- b -- c [color=blue];
     b -- d [style=dotted];
 }

Why do I keep wanting to call it cute? No, no, no, it’s elegant, not cute!

Advertisements
 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s