Module Visualization/Graphviz/Graph

This module is undocumented. This is a list of its definitions.

applyGraphProperty :: Graph -> Property -> <Proc> ()

Sets one property on the graph. Fails for a property that a graph does not support, such as Shape.

newGraph :: [Property] -> <Proc> Graph

Creates an empty graph and sets the given properties on it. Nodes and edges are added to the graph afterwards with newNode and newEdge.

newPrimitiveGraph :: <Proc> Graph

Creates an empty graph with no attributes set.

setGenericProperty :: Graph -> String -> String -> <Proc> ()

Sets an arbitrary DOT graph attribute, given its name and its value. Setting the same attribute again replaces the earlier value.

setLabel :: Graph -> String -> <Proc> ()

Sets the label attribute of the graph, the caption drawn for it.

setRankdir :: Graph -> String -> <Proc> ()

Sets the rankdir attribute, the direction the layout grows in. The accepted values are TB, LR, BT and RL; DOT lays a graph out from top to bottom by default.