Interface with GraphViz
This module provides a basic interface with dot and neato, two programs of the GraphViz toolbox. These tools are available at the following URLs:
http://www.graphviz.org
http://www.research.att.com/sw/tools/graphviz
Because the neato and dot engines present a lot of common points -
in particular in the graph description language, large parts of
the code is shared. The CommonAttributes
module defines
attributes of graphs, vertices and edges that are understood by the
two engines. Then module DotAttributes
and NeatoAttributes
define attributes specific to dot and neato respectively.
The two least significant bytes encode the transparency information; the six most signification are the standard RGB color
The CommonAttributes
module defines attributes for graphs, vertices and
edges that are available in the two engines, dot and neato.
Attributes of graphs.
Attributes of vertices.
Attributes of edges.
DotAttributes
extends CommonAttributes
and implements ATTRIBUTES
.
Attributes of graphs. They include all common graph attributes and several specific ones. All attributes described in the "dot User's Manual, February 4, 2002" are handled, excepted: clusterank, color, compound, labeljust, labelloc, ordering, rank, remincross, rotate, searchsize and style.
Attributes of nodes. They include all common node attributes and several specific ones. All attributes described in the "dot User's Manual, February 4, 2002" are handled, excepted: bottomlabel, group, shapefile and toplabel.
Attributes of edges. They include all common edge attributes and several specific ones. All attributes described in the "dot User's Manual, February 4, 2002" are handled, excepted: lhead and ltail.
Graph module with dot attributes
Vertex attributes
Edge attributes
The box (if exists) which the vertex belongs to. Boxes with same names are not distinguished and so they should have the same attributes.
Graph, vertex and edge attributes.
The box (if exists) which the vertex belongs to. Boxes with same names are not distinguished and so they should have the same attributes.
output_graph oc graph
pretty prints the graph graph
in the dot
language on the channel oc
.
Attributes of graphs. They include all common graph attributes and several specific ones. All attributes described in the "Neato User's manual, April 10, 2002" are handled.
Attributes of nodes. They include all common node attributes and several specific ones. All attributes described in the "Neato User's manual, April 10, 2002" are handled.
Attributes of edges. They include all common edge attributes and several specific ones. All attributes described in the "Neato User's manual, April 10, 2002" are handled.
Graph, vertex and edge attributes.
The box (if exists) which the vertex belongs to. Boxes with same names are not distinguished and so they should have the same attributes.
Several functions provided by this module run the external program
neato. By default, this command is supposed to be in the default
path and is invoked by neato. The function
set_command
allows to set an alternative path at run time.
output_graph oc graph
pretty prints the graph graph
in the dot
language on the channel oc
.