Extension:GraphViz/v0.9

I have recently (2-oct-2004) created a extension to mediawiki in response to a basic need : Render Graphs online

I found the utility graphviz on another wiki, and i think on adopting it to mediawiki (the wiki i actually use ) exploring the Graphviz tool i discover an incredible tool to making Graphs. Automatic graph drawing has many important applications in software engineering, database and web design, networking, and in visual interfaces for many other domains.

You can view a lot of samples here, at the original page.

Of course the only requisite for this plugin to work is the graphviz program, you can download it from here

You can find information on how to write a graph on the original page at here

Requisits
Graphviz 1.12, download from here

Install instructions
you must copy Graphviz.php to $mediawiki/extensions directory and add this line to LocalSettings.php: include("extensions/Graphviz.php");

Also you must set $wgGraphVizSettings->dotCommand = "/usr/local/bin/dot"; to accomplish your installation of graphviz.

Online samples
You can view online samples at my wiki

Other rendering engines
I wanted to use other layout engines besides dot(1), so I hacked Graphviz.php to allow a Unix-style interpreter specification for the other rendering engines in Graphviz. This is backwards compatible (since it is a legal dot comment) and avoids coming up with new syntax.

The interpreter spec must immediately follow the opening tag: " #!/sw/bin/neato" for example. I explicitly check for allowed rendering engines to avoid script injection security issues.

Extension at: http://www.Bytesmiths.com/InfoArk/Graphviz.php.gz

Annotated examples at: http://www.IslandSeeds.org/wiki/Test:Graphviz

Enjoy! --Bytesmiths 14:53, 15 Mar 2005 (UTC)