Module Visualization/Graphviz

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

parseGraphFromFile :: File -> <Proc> Graph

Reads a graph from a file of DOT source. Fails if the file cannot be read or does not parse.

showDotIntoImage :: File -> String -> String -> File -> <Proc> ()

Runs Graphviz on a file of DOT source and writes the result into the last file. The first string is the layout algorithm and the second is the output format, passed to dot as -K and -T.

showGraph :: Graph -> <Proc> ()

Lays the graph out with the dot algorithm and opens it in a new viewer window. The window is opened on the AWT thread, so this returns before the graph is drawn.

showGraphIntoDataFile :: Graph -> File -> <Proc> ()

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

showGraphIntoImage :: Graph -> String -> String -> File -> <Proc> ()

Runs Graphviz on the graph and writes the result into the given file. The first string is the layout algorithm and the second is the output format, passed to dot as -K and -T. The format dot is handled without running Graphviz and just writes the DOT source.

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

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

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

Lays the graph 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.