Mit der Erweiterung können Sie einfache grafische Abbildungen integrieren, ohne ein separates Grafikprogramm zu bemühen.
Code:
<graphviz>
digraph Beispiel1 {Hallo -> "Welt!"}
</graphviz>
Ergebnis:
<graphviz> digraph Beispiel1 {Hallo -> "Welt!" [label=Pfeil]} </graphviz>
Was ist ein graph, node und edge? Graph, Knoten, Kante
Wie beeinflusse ich die Richtung meines graph? [rankdir=TB/BT/LR/RL]
Wie verändere ich die Form, Farbe und Fonts meiner nodes?
node [fontname=Verdana,fontsize=12] node [shape=box/ellipse/circle/egg/plaintext/triangle/diamond, style=filled/rounded, color=green, fillcolor=grey, fontcolor=white]
Wie beeinflusse ich die Beschreibung, Farbe und Pfeilspitze von edges?
edge [arrowhead=normal/dot/odot/inv/none, color=blue, label=Beschreibung]
Code:
<graphviz> digraph Beispiel2 {
[bgcolor="transparent"]
[rankdir=LR]
Diamant
[shape=diamond,
style=filled,
color=blue,
fillcolor=midnightblue,
fontcolor=white];
Ei
[shape=egg,
style=filled,
color=beige,
fillcolor=lightcoral];
Kasten
[shape=box,
style=filled,
color=yellow,
fillcolor=green];
Haus
[shape=house,
style=filled,
color=gray,
fillcolor=red];
Kreis
[shape=circle,
style=filled,
color=green,
fillcolor=lawngreen,
fontcolor=linen];
Nix
[shape=none,
fontcolor=red];
Diamond -> Kasten ->
Haus -> Kreis -> Nix [color=blue];
Standard -> Ei -> Haus [color=red];
</graphviz>
Ergebnis:
graphviz> digraph Beispiel2 {
[bgcolor="transparent"] [rankdir=LR]
Diamant [shape=diamond, style=filled, color=blue, fillcolor=midnightblue, fontcolor=white]; Ei [shape=egg, style=filled, color=beige, fillcolor=lightcoral]; Kasten [shape=box, style=filled, color=yellow, fillcolor=green]; Haus [shape=house, style=filled, color=gray, fillcolor=red]; Kreis [shape=circle, style=filled, color=green, fillcolor=lawngreen, fontcolor=linen]; Nix [shape=none, fontcolor=red];
Diamond -> Kasten -> Haus -> Kreis -> Nix [color=blue]; Standard -> Ei -> Haus [color=red];
</graphviz>
Detaillierte Informationen finden Sie unter
http://www.mediawiki.org/wiki/GraphViz
Eine gute Übersicht was mit der Erweiterung möglich ist finden Sie unter
http://wiki.zum.de/Hilfe:Graphviz
Es handelt sich hierbei um das Tutorial für LOOP1. Die Dokumentation für LOOP 2 wird gegenwärtig entwickelt: https://loop.eduloop.de. Viele Funktionen lassen sich ähnlich auch in LOOP2 verwenden.