Graphviz

TwitterFacebook
Get flash to fully experience Pearltrees
Cluster

Graphviz & MediaWiki

Garphviz Examples

La production de certaines applications exige de pouvoir générer des graphes au sens recherche opérationelle du terme. C'est-à-dire des graphiques représentant des noeuds liés entre eux via des arcs orientés ou non. Or la représentation graphique des graphes est un problème algorithmique ardu. La conception d'un programme offrant une telle fonctionnalité est une tâche de longue haleine qui requiert de fortes compétences en mathématiques et algorithmique. Ainsi, il est utile de recourir à un programme externe à qui on délègue la génération des graphes. L'application http://cyberzoide.developpez.com/graphviz/

Génération de graphes avec GraphViz

The DOT Language

The following is an abstract grammar defining the DOT language. Terminals are shown in bold font and nonterminals in italics. Literal characters are given in single quotes. Parentheses ( and ) indicate grouping when needed. Square brackets [ and ] enclose optional items. Vertical bars | separate alternatives. http://www.graphviz.org/doc/info/lang.html
http://www.graphviz.org/doc/info/command.html

Command-line Usage

Set output language to one of the supported formats . By default, attributed dot is produced. Depending on how Graphviz was built, there may be multiple renderers for generating a particular output format, and multiple formatters for creating the final output.
http://www.graphviz.org/doc/info/output.html These formats produce output in the dot language . Using canon produces a prettyprinted version of the input, with no layout performed. The dot option corresponds to attributed dot output, and is the default output format. It reproduces the input, along with layout information for the graph. In particular, a bb attribute is attached to the graph, specifying the bounding box of the drawing.

Output Formats

http://fsteeg.com/2006/11/16/uml-activity-diagrams-with-graphviz/ Activity diagrams are somewhat doable with Graphviz, they just don’t look very nice, some straight edges would be great. And especially, only new versions of Graphviz support that tailport thing… code and rendered result above. digraph untitled { rankdir=TD size="4,4" edge[fontsize="11" arrowhead=open] start[shape=circle, label="", style=filled] end[shape=doublecircle, label="", style=filled] action1[shape=box,style=rounded, label="action"] action2[shape=box,style=rounded, label="action"] action3[shape=box,style=rounded, label="action"] if1[shape=diamond, label="decision"] if2[shape=diamond, label="decision"] start -> action1 action1 -> if1[headport=n] if1 -> action2[label="condition" tailport=w] if1 -> action3[taillabel="condition" labeldistance=2.5 tailport=e] action2 -> if2[headport=w] action3 -> if2[headport=e] if2 -> end[taillabel="condition"] } Like this:

UML activity diagrams with Graphviz « Geschreibsel

Data Mining / Metadata Mining

Sequence Diagram