[previous] [next] WebDot Tutorial: Basic graph creation

Given a description of a graph in the dot language, for example this graph:
graph G {
        a -- b -- c -- d
        b -- e -- d
}
in a file that can be served by your web server, in this case: /webdot/basic.dot

Then this img tag in an html web page:
<img src="/cgi-bin/webdot/webdot/basic.dot.neato.png">

will produce the graph layout at the top of this page.

The URL in the img src reference consists of four parts:
/cgi-bin/webdotThe WebDot CGI server
(can be a full URL, or a relative URL like this if webdot is on the same server as the html source.)
/webdot/basic.dotThe graph source file
(can be a full URL, or a relative URL like this if the graph source is on the same server as webdot.
If it is to be a full URL of a different server than the webdot cgi is on, then the webdot cgi must be configured for public graph serving.)
.neatoThe layout engine
(can be either: ".dot", ".neato", or ".twopi")
.pngThe output format
(other bitmap formats are: ".gif")