|
|
| Line 1: |
Line 1: |
| - | Graphviz Tests | + | Graphviz Tests |
| | | | |
| | <graphviz> | | <graphviz> |
| - | digraph G { | + | digraph G { |
| - | size ="4,4";
| + | bgcolor="transparent" |
| - | "Executive Board" [shape=box]; /* this is a comment */ | + | format="svg" |
| - | "Executive Board" -> parse [weight=8];
| + | node [style=filled, color=black, fillcolor=white shape=record]; |
| - | parse -> execute;
| + | struct1 [label="<f0> left|<f1> mid\ dle|<f2> right"]; |
| - | "Executive Board" -> init [style=dotted]; | + | struct2 [label="<f0> one|<f1> two"]; |
| - | "Executive Board" -> cleanup;
| + | struct3 [label="hello\nworld |{ b |{c|<here> d|e}| f}| g | h"]; |
| - | execute -> { make_string; printf}
| + | struct1:f1 -> struct2:f0; struct1:f2 -> struct3:here; |
| - | init -> make_string;
| + | |
| - | edge [color=red]; // so is this
| + | |
| - | "Executive Board" -> printf [style=bold,label="100 times"];
| + | |
| - | make_string [label="make a\nstring"];
| + | |
| - | node [shape=box,style=filled,color=".7 .3 1.0"];
| + | |
| - | execute -> compare;
| + | |
| | } | | } |
| - | </graphviz>
| |
| - |
| |
| - |
| |
| - |
| |
| - |
| |
| - | <graphviz caption='Hello SVG and PNG' alt='phylogenetic tree' format='svg+png'>
| |
| - | digraph G {
| |
| - | node [shape=plaintext];
| |
| - | Mollusca [URL="Mollusca"];
| |
| - | Neomeniomorpha [URL="Neomeniomorpha"];
| |
| - | X1 [shape=point,label=""];
| |
| - | Caudofoveata [URL="Caudofoveata"];
| |
| - | Testaria [URL="Testaria"];
| |
| - | Polyplacophora [URL="Polyplacophora"];
| |
| - | Conchifera [URL="Conchifera"];
| |
| - | Tryblidiida [URL="Tryblidiida"];
| |
| - | Ganglioneura [URL="Ganglioneura"];
| |
| - | Bivalvia [URL="Bivalvia"];
| |
| - | X2 [shape=point,label=""];
| |
| - | X3 [shape=point,label=""];
| |
| - | Scaphopoda [URL="Scaphopoda"];
| |
| - | Cephalopoda [URL="Cephalopoda"];
| |
| - | Gastropoda [URL="Gastropoda"];
| |
| - | Mollusca->X1->Testaria->Conchifera->Ganglioneura->X2->Gastropoda
| |
| - | Mollusca->Neomeniomorpha
| |
| - | X1->Caudofoveata
| |
| - | Testaria->Polyplacophora
| |
| - | Conchifera->Tryblidiida
| |
| - | Ganglioneura ->Bivalvia
| |
| - | X2->X3->Cephalopoda
| |
| - | X3->Scaphopoda
| |
| - | }
| |
| - | </graphviz>
| |
| - |
| |
| - |
| |
| - | <graphviz border='frame' format='svg'>
| |
| - | digraph G {Hello->World!}
| |
| | </graphviz> | | </graphviz> |