====== [DOC] Graphviz cheatsheet ======
====== Node Shapes ======
* box
* polygon
* ellipse
* oval
* circle
* point
* egg
* triangle
* plaintext
* diamond
* trapezium
* parallelogram
* house
* pentagon
* hexagon
* septagon
* octagon
* doublecircle
* doubleoctagon
* tripleoctagon
* invtriangle
* invtrapezium
* invhouse
* Mdiamond
* Msquare
* Mcircle
* rect
* rectangle
* square
* none
* note
* tab
* folder
* box3d
* component
AquĆ unos [[http://www.graphviz.org/doc/info/shapes.html|Samples]].
====== Colors ======
[[http://graphviz.org/doc/info/colors.html]]
====== Examples ======
digraph test {
this [shape=doublecircle];
is [shape=box];
a [shape=invtriangle];
test [shape=polygon,sides=6,color=red,style=filled];
{ rank = same;
this; what;
}
this->is;
is->a;
a->test;
test->what;
what->do;
do->you;
you->"think?";
}
digraph test {
this [shape=doublecircle];
is [shape=box];
a [shape=invtriangle];
test [shape=polygon,sides=6,color=red,style=filled];
{ rank = same;
this; what;
}
this->is;
is->a;
a->test;
test->what;
what->do;
do->you;
you->"think?";
}
digraph test {
this [shape=doublecircle];
is [shape=box];
a [shape=invtriangle];
test [shape=polygon,sides=6,color=red,style=filled];
{ rank = same;
this; what;
}
this->is;
is->a;
a->test;
test->what;
what->do;
do->you;
you->"think?";
}
digraph G {
compound=true;
subgraph cluster0 {
a -> b;
a -> c;
b -> d;
c -> d;
}
subgraph cluster1 {
e -> g;
e -> f;
}
b -> f [lhead=cluster1];
d -> e;
c -> g [ltail=cluster0,
lhead=cluster1];
c -> e [ltail=cluster0];
d -> h;
}