Changes between Version 4 and Version 5 of GraphvizPluginForTrac


Ignore:
Timestamp:
Dec 8, 2014, 2:12:24 PM (3 years ago)
Author:
konca
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GraphvizPluginForTrac

    v4 v5  
     1[[TOC]] 
     2 
    13This is an illustration of Trac's Graphviz plugin which generates graph image from text script.  
    24 
    3 = Example 1 = 
     5== Example 1 == 
    46{{{ 
    57#!graphviz 
     
    1315}}} 
    1416 
    15 = Example 2 = 
     17== Example 2 == 
    1618{{{ 
    1719#!graphviz 
     
    4143}}} 
    4244 
    43 = Also see = 
     45== Example 3 == 
     46{{{ 
     47#!graphviz 
     48digraph G { 
     49 
     50        subgraph cluster_0 { 
     51                style=filled; 
     52                color=lightgrey; 
     53                node [style=filled,color=white]; 
     54                a0 -> a1 -> a2 -> a3; 
     55                label = "process #1"; 
     56        } 
     57 
     58        subgraph cluster_1 { 
     59                node [style=filled]; 
     60                b0 -> b1 -> b2 -> b3; 
     61                label = "process #2"; 
     62                color=blue 
     63        } 
     64        start -> a0; 
     65        start -> b0; 
     66        a1 -> b3; 
     67        b2 -> a3; 
     68        a3 -> a0; 
     69        a3 -> end; 
     70        b3 -> end; 
     71 
     72        start [shape=Mdiamond]; 
     73        end [shape=Msquare]; 
     74} 
     75}}} 
     76This image is generated from this script: 
     77{{{ 
     78#!text 
     79digraph G { 
     80 
     81        subgraph cluster_0 { 
     82                style=filled; 
     83                color=lightgrey; 
     84                node [style=filled,color=white]; 
     85                a0 -> a1 -> a2 -> a3; 
     86                label = "process #1"; 
     87        } 
     88 
     89        subgraph cluster_1 { 
     90                node [style=filled]; 
     91                b0 -> b1 -> b2 -> b3; 
     92                label = "process #2"; 
     93                color=blue 
     94        } 
     95        start -> a0; 
     96        start -> b0; 
     97        a1 -> b3; 
     98        b2 -> a3; 
     99        a3 -> a0; 
     100        a3 -> end; 
     101        b3 -> end; 
     102 
     103        start [shape=Mdiamond]; 
     104        end [shape=Msquare]; 
     105} 
     106}}} 
     107 
     108== Example 4 == 
     109Draws UML Class Diagram with Graphviz. 
     110{{{ 
     111#!graphviz 
     112digraph { 
     113  rankdir=BT // Graph direction : Bottom-Top 
     114  node [shape=record] // all nodes are in Box shape 
     115  edge [dir=normal labeldistance=1] // "labeldistance=1" is default value 
     116  
     117  // Multiplicity types by Crow's Foot Notation 
     118  Member1 -> Group1 [dir=both arrowtail=crowodot arrowhead=teetee label="0or* to 1"] 
     119  Member2 -> Group2 [dir=both arrowtail=teeodot arrowhead=teetee label="0or1 to 1"] 
     120  Member3 -> Group3 [dir=both arrowtail=crowtee arrowhead=crowodot label="1or* to 0or*"] 
     121} 
     122}}} 
     123This image is generated from this script: 
     124{{{ 
     125#!text 
     126digraph { 
     127  rankdir=BT // Graph direction : Bottom-Top 
     128  node [shape=record] // all nodes are in Box shape 
     129  edge [dir=normal labeldistance=1] // "labeldistance=1" is default value 
     130  
     131  // Multiplicity types by Crow's Foot Notation 
     132  Member1 -> Group1 [dir=both arrowtail=crowodot arrowhead=teetee label="0or* to 1"] 
     133  Member2 -> Group2 [dir=both arrowtail=teeodot arrowhead=teetee label="0or1 to 1"] 
     134  Member3 -> Group3 [dir=both arrowtail=crowtee arrowhead=crowodot label="1or* to 0or*"] 
     135} 
     136}}} 
     137 
     138 
     139== Also see == 
    44140 * [http://www.graphviz.org/ Graphviz - Graph Visualization Software] 
    45141 * [https://trac-hacks.org/wiki/GraphvizPlugin Graphviz Plugin description in Trac Hacks] 
     142 * [http://blog.konca.com/2013/08/25/draws-uml-class-diagram-with-graphviz/ Draws UML Class Diagram with Graphviz] 
    46143 * [http://blog.konca.com/2014/02/24/installs-trac-and-graphviz-plugin-in-dreamhost/ Installs Trac and Graphviz plugin in DreamHost]