Module Visualization/GGraph

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

GGraph :: Graph -> MMap.T a Node -> (a -> <b> [Property]) -> GGraph a b
newGEdge :: GGraph a b -> a -> a -> [Property] -> <b,Proc> Edge

Adds an edge to the graph from the node of the first value to the node of the second, with the given properties, and returns it. Either node is created first if the value has not been seen before. The graph is modified in place.

newGGraph :: [Property] -> (a -> <b> [Property]) -> <Proc> GGraph a b

Creates a graph builder over an empty DOT graph that has the given properties. The function is called once per value, when the node for that value is first created, and gives the properties of that node.

newGNode :: GGraph a b -> a -> <b,Proc> Node

The node of the given value, adding it to the graph if the value has not been seen before. Use this to put an isolated node into the graph, or to reach the Node handle of a value.

showGGraph :: GGraph a b -> <Proc> ()

Lays the graph built so far out with the dot algorithm and opens it in a new viewer window.

showGGraphIntoDataFile :: GGraph a b -> File -> <Proc> ()

Writes the graph built so far into the given file as DOT source, without laying it out.

showGGraphIntoImage :: GGraph a b -> String -> String -> File -> <Proc> ()

Runs Graphviz on the graph built so far and writes the result into the given file, using the given layout algorithm and output format.

showGGraphWithAlgorithm :: String -> GGraph a b -> <Proc> ()

Lays the graph built so far out with the named Graphviz layout algorithm, such as dot, neato, fdp, twopi or circo, and opens it in a new viewer window.

showGGraphWithNamedWindow :: String -> String -> GGraph a b -> <Proc> ()

Lays the graph built so far out with the named algorithm and shows it in the viewer window with the given name, creating that window if it does not exist yet and replacing what it shows if it does.