plugin:graphviz
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
plugin:graphviz [2015-10-06 17:42] – [Example] 80.153.3.250 | plugin:graphviz [2022-05-05 16:47] – [Example] 47.57.142.223 | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : andi@splitbrain.org | email : andi@splitbrain.org | ||
type : Syntax | type : Syntax | ||
- | lastupdate : 2013-12-25 | + | lastupdate : 2016-02-03 |
- | compatible : anteater, 2011-05-25, adora belle, weatherwax, ponder stibbons, Hrun | + | compatible : anteater, 2011-05-25, adora belle, weatherwax, ponder stibbons, Hrun, Detritus |
depends | depends | ||
conflicts | conflicts | ||
Line 31: | Line 31: | ||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
- | Download | + | Search |
==== Changes ==== | ==== Changes ==== | ||
- | {{rss>http:// | + | {{rss>https:// |
===== Configuration ===== | ===== Configuration ===== | ||
Line 58: | Line 58: | ||
==== Example ==== | ==== Example ==== | ||
- | < | + | < |
- | < | + | digraph |
- | digraph | + | rankdir=LR; |
- | rankdir=LR; | + | s25[fontsize=11, |
- | size="12,5" | + | s239[fontsize=24, |
- | node [shape = doublecircle]; LR_0 LR_3 LR_4 LR_8 LR_10; | + | s240[fontsize=11, |
- | node [shape = circle]; | + | s241[fontsize=11, |
- | LR_0 -> LR_10 [ label = "Sa(B)" ]; | + | s242[fontsize=11, |
- | LR_0 -> LR_1 [ label = "Testen" ]; | + | s243[fontsize=11, |
- | LR_1 -> LR_3 [ label = "S($end)" ]; | + | s244[fontsize=11, |
- | LR_2 -> LR_6 [ label = "SS(b)" ]; | + | s245[fontsize=11, |
- | LR_2 -> LR_5 [ label = "SS(a)" ]; | + | s246[fontsize=11, |
- | LR_2 -> LR_4 [ label = "Sx(A)" ]; | + | s247[fontsize=11, |
- | LR_5 -> LR_7 [ label = "S(b)" ]; | + | s24[fontsize=11, |
- | LR_5 -> LR_5 [ label = "S(a)" ]; | + | s248[fontsize=11, |
- | LR_6 -> LR_6 [ label = "S(b)" ]; | + | s249[fontsize=11, |
- | LR_6 -> LR_5 [ label = "S(a)" ]; | + | s250[fontsize=11, |
- | LR_7 -> LR_8 [ label = "S(b)" ]; | + | s251[fontsize=11, |
- | LR_7 -> LR_5 [ label = "S(a)" ]; | + | s252[fontsize=11, |
- | LR_8 -> LR_6 [ label = "S(b)" ]; | + | s24 -> s239 [fontname=" |
- | LR_8 -> LR_5 [ label = "S(a)" ]; | + | s239 -> s247 [fontsize=11, |
- | | + | s247 -> s240 [fontname=" |
+ | s240 -> s243 [fontsize=11, | ||
+ | s243: | ||
+ | s243: | ||
+ | s241 -> s244 [fontsize=11, | ||
+ | s242 -> s244 [fontsize=11, | ||
+ | s244 -> s245 [fontname=" | ||
+ | s245 -> s246 [fontsize=11, | ||
+ | s246 -> s248 [fontsize=11, | ||
+ | s248 -> s249 [fontname=" | ||
+ | s249: | ||
+ | s249: | ||
+ | s250 -> s251 [fontname=" | ||
+ | s251 -> s252 [fontsize=11, | ||
+ | s252 -> s25 [fontname=" | ||
} | } | ||
</ | </ | ||
- | </ | ||
{{ http:// | {{ http:// | ||
+ | ===== how to display dot MAPs ===== | ||
+ | |||
+ | * For UNIX users ( since assumes a PATH of / | ||
+ | |||
+ | Using an old version of Graphviz I fixed to display **dot** maps //(nodes that when you click on them link to a URL ie another page in your wiki or an external link.) // | ||
+ | |||
+ | This is a fragment of the render section of the syntax file ie ( I replaced my render function with this ): | ||
+ | |||
+ | <file PHP r.php> | ||
+ | /** | ||
+ | * Create output | ||
+ | */ | ||
+ | function render($mode, | ||
+ | global $conf; | ||
+ | global $gr_ext; | ||
+ | $gr_ext=' | ||
+ | $grf_ext=' | ||
+ | if($data[1] == ' | ||
+ | if ( !is_dir($conf[' | ||
+ | io_mkdir_p($conf[' | ||
+ | $hash = md5(serialize($data)); | ||
+ | $filename = $conf[' | ||
+ | $url = ml(' | ||
+ | |||
+ | // | ||
+ | // | ||
+ | |||
+ | // if already exist render | ||
+ | if ( is_readable($filename) ) { | ||
+ | // cached. | ||
+ | |||
+ | // generate the map to variable | ||
+ | $kk1 = "sed ' | ||
+ | $cmd = "echo ' | ||
+ | | ||
+ | exec( $cmd, $map); | ||
+ | // | ||
+ | $maphtml = implode(" | ||
+ | // add the target - cant do this with DOT | ||
+ | $maphtml = str_replace("< | ||
+ | |||
+ | // Include Map in the page | ||
+ | $renderer-> | ||
+ | | ||
+ | | ||
+ | |||
+ | // Link the Image below with the map above by hash | ||
+ | $renderer-> | ||
+ | |||
+ | return true; | ||
+ | } | ||
+ | |||
+ | if (!$this-> | ||
+ | |||
+ | // generate the map | ||
+ | $kk1 = "sed ' | ||
+ | $cmd = "echo ' | ||
+ | | ||
+ | exec( $cmd, $map); | ||
+ | $maphtml= implode(" | ||
+ | // add the target - cant do this with DOT | ||
+ | $maphtml=str_replace("< | ||
+ | |||
+ | // Include Map in the page | ||
+ | $renderer-> | ||
+ | | ||
+ | | ||
+ | |||
+ | // Link the Image below with the map above by hash | ||
+ | $renderer-> | ||
+ | |||
+ | } else { | ||
+ | $renderer-> | ||
+ | } | ||
+ | return true; | ||
+ | } | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | My 2 cents to this wonderful dokuwiki community that has given me so much through the years. | ||
+ | |||
+ | Regards, \\ Enrique M | ||
+ | |||
+ | Sign update: " | ||
+ | |||
+ | |||
+ | ==== Hyperlinks from Graphviz nodes ==== | ||
+ | |||
+ | If you want links from the nodes, you can use this forked version: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Hopefully the fix will be merged soon in the official version.. | ||
+ | |||
+ | Fabio | ||
+ | |||
+ | |||
===== Compatibility ===== | ===== Compatibility ===== | ||
+ | |||
+ | |||
It seems to be compatible with " | It seems to be compatible with " | ||
> I use it in Rincewind, it seems to work fine for me! Thanks for this great plugin! [[info@drost-tenfelde.de|jdt]] | > I use it in Rincewind, it seems to work fine for me! Thanks for this great plugin! [[info@drost-tenfelde.de|jdt]] | ||
Line 159: | Line 272: | ||
== Does the server need an access to Internet ? == | == Does the server need an access to Internet ? == | ||
- | Yes, it uses Google API to generate graphs. | + | Default: |
+ | However, it can be set up to point straight to a local install of graphiz. In that case no internet access is needed. | ||
+ | |||
+ | == How to read external dot File? == | ||
+ | How can i render an external (autogenerated) dot file? | ||
+ | |||
+ | == How to include images in HTML-Labels? |
plugin/graphviz.txt · Last modified: 2022-05-05 16:50 by 47.57.142.223