other:graphviz_howto
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
graphviz_howto [2012/04/04 14:57] – created dodger | other: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:// | ||
+ | |||
+ | ====== Colors ====== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | |||
+ | ====== Examples ====== | ||
+ | |||
+ | < | ||
+ | < | ||
digraph test { | digraph test { | ||
- | node [shape = doublecircle]; LR_0 LR_3 LR_4 LR_8; | + | this [shape=doublecircle]; |
- | node [shape = circle]; | + | is [shape=box]; |
- | LR_0 -> LR_2 [ label = " | + | a [shape=invtriangle]; |
- | LR_0 -> LR_1 [ label = " | + | test [shape=polygon, |
- | LR_1 -> LR_3 [ label = " | + | { rank = same; |
- | LR_2 -> LR_6 [ label = " | + | this; what; |
- | LR_2 -> LR_5 [ label = " | + | } |
- | LR_2 -> LR_4 [ label = " | + | this->is; |
- | LR_5 -> LR_7 [ label = " | + | is->a; |
- | LR_5 -> LR_5 [ label = "S(a)" ]; | + | a->test; |
- | LR_6 -> LR_6 [ label = " | + | test->what; |
- | LR_6 -> LR_5 [ label = " | + | what->do; |
- | LR_7 -> LR_8 [ label = " | + | do->you; |
- | LR_7 -> LR_5 [ label = " | + | you->"think?"; |
- | LR_8 -> LR_6 [ label = "S(b)" | + | |
- | LR_8 -> LR_5 [ label = " | + | |
} | } | ||
</ | </ | ||
- | < | + | </ |
+ | |||
+ | < | ||
+ | digraph test { | ||
+ | this [shape=doublecircle]; | ||
+ | is [shape=box]; | ||
+ | a [shape=invtriangle]; | ||
+ | test [shape=polygon, | ||
+ | { rank = same; | ||
+ | this; what; | ||
+ | } | ||
+ | this-> | ||
+ | is->a; | ||
+ | a-> | ||
+ | test-> | ||
+ | what-> | ||
+ | do-> | ||
+ | you->" | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | < | ||
+ | digraph test { | ||
+ | this [shape=doublecircle]; | ||
+ | is [shape=box]; | ||
+ | a [shape=invtriangle]; | ||
+ | test [shape=polygon, | ||
+ | { rank = same; | ||
+ | this; what; | ||
+ | } | ||
+ | this-> | ||
+ | is->a; | ||
+ | a-> | ||
+ | test-> | ||
+ | what-> | ||
+ | do-> | ||
+ | you->" | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | < | ||
digraph G { | digraph G { | ||
- | node [shape=plaintext]; | + | compound=true; |
- | | + | subgraph cluster0 { |
- | | + | a -> b; |
- | X1 [shape=point, | + | a -> c; |
- | | + | b -> d; |
- | | + | c -> d; |
- | | + | } |
- | | + | subgraph cluster1 { |
- | | + | e -> g; |
- | | + | e -> f; |
- | | + | } |
- | X2 [shape=point, | + | b -> f [lhead=cluster1]; |
- | | + | d -> e; |
- | | + | c -> g [ltail=cluster0, |
- | | + | lhead=cluster1]; |
- | | + | c -> e [ltail=cluster0]; |
- | Mollusca->X1-> | + | d -> h; |
- | Mollusca-> | + | |
- | X1-> | + | |
- | Testaria-> | + | |
- | Conchifera-> | + | |
- | Ganglioneura -> | + | |
- | X2-> | + | |
- | X3-> | + | |
} | } | ||
</ | </ | ||
+ |
other/graphviz_howto.1333551430.txt.gz · Last modified: 2012/04/04 14:57 by dodger