User Tools

Site Tools


other:graphviz_howto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
graphviz_howto [2012/04/04 15:07] dodgerother:graphviz_howto [2022/02/11 11:36] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== [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 ======
 +
 <code> <code>
 <graphviz> <graphviz>
Line 40: Line 88:
 </graphviz> </graphviz>
  
 +
 +
 +<graphviz>
 +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?";
 +}
 +</graphviz>
 +
 +<graphviz>
 +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;
 +}
 +</graphviz>
  
other/graphviz_howto.1333552076.txt.gz · Last modified: 2012/04/04 15:07 by dodger