Graphviz

Voorbeelden

…Gejat

Dokuwiki parser

<graphviz>
digraph DokuWikiParser1 {
        node [style=rounded, fontname=Helvetica, fontsize=13];
        nodesep=0.8 // increases the separation between nodes
 
        edge [fontname=Helvetica, fontsize=10];
        P [label=Parser,         shape=box, pin=true, pos="1,3.5"];
        H [label=Handler,        shape=box, pin=true, pos="3,2"];
        CC [label="Client Code", shape=box, pin=true, pos="3,3.5"];
        L [label=Lexer,          shape=box, pin=true, pos="1,2"];
        M [label=Modes,          shape=box, pin=true, pos="1,1"];
        CC -> P [label="Input String"];
        H -> CC [label="Render\nInstructions"];
        P -> L  [label="Modes\n+\nInput String"];
        L -> H  [label=Tokens];
        L -> M  [arrowhead=none];
}
 
</graphviz>

UML

<graphviz>
digraph AnimalAndSubclasses {
        fontname = "Courier"
        fontsize = 9
 
        node [
                fontname = "Verdana"
                fontsize = 8
                shape = "record"
        ]
 
        edge [
                fontname = "Verdana"
                fontsize = 8
        ]
 
        Animal [
                label = "{Animal|+ name : string\l+ age : int\l|+ die() : void\l}"
        ]
 
        Dog [
                label = "{Dog||+ bark() : void\l}"
        ]
        Cat [
                label = "{Cat||+ meow() : void\l}"
        ]
        edge [
                arrowhead = "empty"
        ]
 
        Dog -> Animal
        Cat -> Animal
 
        edge [
                arrowhead = "none"
 
                headlabel = "0..*"
                taillabel = "0..*"
        ]
 
        Dog -> Cat
 
}
</graphviz>

/share/Web/dokuwiki/data/pages/beheer/graphviz.txt · Laatst gewijzigd: 2013/12/23 13:45 door pieter
CC Attribution-Share Alike 4.0 International
Powered by PHP Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 Valid HTML5