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
Last revisionBoth sides next revision
graphviz_howto [2012/04/04 14:58] dodgerother:graphviz_howto [2018/11/15 10:54] dodger
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>
 <graphviz> <graphviz>
 digraph test { 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; this->is;
 is->a; is->a;
 a->test; a->test;
 +test->what;
 +what->do;
 +do->you;
 +you->"think?";
 } }
 </graphviz> </graphviz>
  
 +</code>
 +
 +<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 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.txt · Last modified: 2022/02/11 11:36 by 127.0.0.1