Visualizing Graphs mit Graphviz (and LaTeX) – Part II

This entry is part 2 of 2 in the series GraphViz

In this article I’d like to show a little bit about how to manipulate the style of the nodes and edges.

The graph uses orthogonal edges, red edges and green boxes with blue filling and white font color.

digraph G{
graph [label="Orthogonal edges", splines=ortho, nodesep=0.2]
node [shape=box,style=filled,fillcolor="#0000FF",color="#00FF00",fontcolor="#FFFFFF"];
edge[arrowhead="none",color="#FF0000"];
a [label="Aaa",URL="http://www.google.de"];
b [label="Bbb"];
c [label="Ccc"];
d [label="Ddd"];
e [label="Eee"];
f [label="Fff"];
a->b;
a->c;
a->d;
d->e;
d->f;
}

Note that the URL can only be used in the SVG version, the PDF representation does not support it.

gv2

Uwe

Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined. Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.

More Posts - Website

Series Navigation<< Visualizing Graphs mit Graphviz (and LaTeX) – Part I