Warning:
jsMath
requires JavaScript to process the mathematics on this page.
If your browser supports JavaScript, be sure it is enabled.
View source
From QED
for
Graphviz
Jump to:
navigation
,
search
You can view and copy the source of this page:
[[wikipedia:Graphviz|Graphviz]] is a graphical package available as a {{SITENAME}} extension. The generated graphs can contain "hot spots" defined by URL tags, as illustrated in the first example. ==Examples== The first graph, which has "hot spots" defined as hyperlinks, was produced by the markup shown immediately below it. <graphviz> digraph G { C [URL="http://en.wikipedia.org/wiki/C programming language"]; Java [URL="http://en.wikipedia.org/wiki/Java programming language"]; C -> Java } </graphviz> <pre> <graphviz> digraph G { C [URL="http://en.wikipedia.org/wiki/C programming language"]; Java [URL="http://en.wikipedia.org/wiki/Java programming language"]; C -> Java } </graphviz> </pre> To create a hyperlink to a {{SITENAME}} page named Xyzzy, one could simply write URL="Xyzzy". ---- Links can be automatically generated for all the nodes in a graph as illustrated in the following example. <graphviz> digraph G { node [URL="http://en.wikipedia.org/wiki/\N"]; X -> Y } </graphviz> <pre> <graphviz> digraph G { node [URL="http://en.wikipedia.org/wiki/\N"]; X -> Y } </graphviz> </pre> ---- The following example comes from [http://www.wickle.com/wikis/index.php/Graphviz_extension], which has a Creative Commons [http://creativecommons.org/licenses/by-sa/2.0/ "Attribution-ShareAlike"] statement of availability. <graphviz> digraph G { size ="4,4"; main [shape=box]; /* this is a comment */ main -> parse [weight=8]; parse -> execute; main -> init [style=dotted]; main -> cleanup; execute -> { make_string; printf} init -> make_string; edge [color=red]; // so is this main -> printf [style=bold,label="100 times"]; make_string [label="make a\nstring"]; node [shape=box,style=filled,color=".7 .3 1.0"]; execute -> compare; } </graphviz> <pre> <graphviz> digraph G { size ="4,4"; main [shape=box]; /* this is a comment */ main -> parse [weight=8]; parse -> execute; main -> init [style=dotted]; main -> cleanup; execute -> { make_string; printf} init -> make_string; edge [color=red]; // so is this main -> printf [style=bold,label="100 times"]; make_string [label="make a\nstring"]; node [shape=box,style=filled,color=".7 .3 1.0"]; execute -> compare; } </graphviz> </pre> ==Documentation== Documentation is available at http://www.graphviz.org/Documentation.php Note that this installation of Graphviz uses the DOT language and the dot program. ==See also== * [http://www.graphviz.org/Gallery.php The Graphviz Gallery] * [[Help:JpGraph]] <!-- keywords flow chart diagram --> [[Category:MediaWiki Extensions]] [[Category:Visualization Tool]]
Return to
Graphviz
.
Views
Page
View source
History
Personal tools
Log in
Navigation
QED Home Page
Projects
Help
Community portal
Contributions
Recent changes
QED News
princeton
Almagest
Blackboard
Blog Service
IT's Academic
Mapping Globalization
University Channel
WebMedia
Princeton University
Search
Advanced search
Toolbox
What links here
Related changes
Special pages
Tag This!
BlogMarks
del.icio.us
digg
edtags
Furl
iGoogle
reddit
Segnalo
Simpy
Spurl
Yahoo