#!perl -w
-# dotmcl.pl <factor> <in.dot> <out.dot>
+# dotmcl.pl <factor> <in.gv> <out.gv>
# <factor> the bigger, the more clusters (values from 1.2 to 3.0)
-# <in.dot> dot in file to clusterize
-# <out.dot> dot out file with clusters added
+# <in.gv> dot in file to clusterize
+# <out.gv> dot out file with clusters added
# Vladimir Alexiev <vladimir@worklogic.com>
# This quick hack takes a dot graph description file, adds clusters using the
public static void main (String [] args)
{
DotGraph dot = new DotGraph ("Sample Graph", // Graph Title
- "sample.dot", // Output file name
+ "sample.gv", // Output file name
GRAPH_DEFAULT, // Graph (default) attributes
NODE_DEFAULT, // node defaults
EDGE_DEFAULT); // edge defaults
figured out how to encode/restore fold info to/from the graph file)
- Added save prompt for current graph on 'load graph' menu selection
- Rudimentary "hyperlink" - click on node and select "load subgraph"
- from the menu to load and display ./{nodename}.dot graph. Can
+ from the menu to load and display ./{nodename}.gv graph. Can
navigate back to immediate parent thru menu selection.
'+' also goes to parent, '-' to subgraph of a node. Was not able to
store parent information in graph spec file, so a graph has to be
gt.savegraph (gt, gt.name, gt.type, 1);
pname = gt.name;
- fname = concat (obj.name, '.dot');
+ fname = concat (obj.name, '.gv');
ngt = dotty.protogt.creategraph (null);
ngt.graphattr.parent = pname;
#.1.pdf:
# groff -Tps -man $< | ps2pdf - - >$@
#
-#EXTRA_DIST = $(man_MANS) $(pdf_DATA) Makefile.old Makefile.orig README test.dot
+#EXTRA_DIST = $(man_MANS) $(pdf_DATA) Makefile.old Makefile.orig README test.gv
#
#DISTCLEANFILES = $(pdf_DATA)
.1.pdf:
- @GROFF@ -Tps -man $< | @PS2PDF@ - - >$@
-EXTRA_DIST = $(man_MANS) $(pdf_DATA) Makefile.old Makefile.orig README test.dot prune.vcproj
+EXTRA_DIST = $(man_MANS) $(pdf_DATA) Makefile.old Makefile.orig README test.gv prune.vcproj
DISTCLEANFILES = $(pdf_DATA)
.SH EXAMPLES
An input graph
-.I test.dot
+.I test.gv
of the form
.PP
digraph DG {
, processed by the command
.PP
- prune \-n B test.dot
+ prune \-n B test.gv
.PP
would produce the following output (the actual code might be formatted
in a slightly different way).
.br
Another input graph
-.I test.dot
+.I test.gv
of the form
.PP
digraph DG {
.I E
), processed by the command
.PP
- prune \-n B \-N color=red test.dot
+ prune \-n B \-N color=red test.gv
.PP
results in
.PP
# The output type must be one of dot's output types. The server
# returns a layout of the requested type as an HTTP stream. The dot
# output type is mapped to an appropriate MIME type.
-# For example, if yourhost.company.com/unix.dot is a dot graph file, try
-# webdot.cgi http://yourhost.company.com/unix.dot.dot.ps
-# webdot.cgi http://yourhost.company.com/unix.dot.neato.gif
-# webdot.cgi http://yourhost.company.com/unix.dot.twopi.pdf
+# For example, if yourhost.company.com/unix.gv is a dot graph file, try
+# webdot.cgi http://yourhost.company.com/unix.gv.dot.ps
+# webdot.cgi http://yourhost.company.com/unix.gv.neato.gif
+# webdot.cgi http://yourhost.company.com/unix.gv.twopi.pdf
#
# More details:
# PDF and EPSI files are made by postprocessors.