other:graphviz_howto
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionLast revision | |||
— | other: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:// | ||
+ | |||
+ | ====== Colors ====== | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | |||
+ | ====== Examples ====== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | digraph test { | ||
+ | this [shape=doublecircle]; | ||
+ | is [shape=box]; | ||
+ | a [shape=invtriangle]; | ||
+ | test [shape=polygon, | ||
+ | { rank = same; | ||
+ | this; what; | ||
+ | } | ||
+ | this-> | ||
+ | is->a; | ||
+ | a->test; | ||
+ | test-> | ||
+ | what-> | ||
+ | do->you; | ||
+ | you->" | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | < | ||
+ | digraph test { | ||
+ | this [shape=doublecircle]; | ||
+ | is [shape=box]; | ||
+ | a [shape=invtriangle]; | ||
+ | test [shape=polygon, | ||
+ | { rank = same; | ||
+ | this; what; | ||
+ | } | ||
+ | this-> | ||
+ | is->a; | ||
+ | a->test; | ||
+ | test-> | ||
+ | what-> | ||
+ | do->you; | ||
+ | you->" | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | < | ||
+ | digraph test { | ||
+ | this [shape=doublecircle]; | ||
+ | is [shape=box]; | ||
+ | a [shape=invtriangle]; | ||
+ | test [shape=polygon, | ||
+ | { rank = same; | ||
+ | this; what; | ||
+ | } | ||
+ | this-> | ||
+ | is->a; | ||
+ | a->test; | ||
+ | test-> | ||
+ | what-> | ||
+ | do->you; | ||
+ | you->" | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | 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; | ||
+ | } | ||
+ | </ | ||
other/graphviz_howto.txt · Last modified: 2022/02/11 11:36 by 127.0.0.1