- view_graph(+Graph)
- Display a given graph in a window (using default options)
- view_graph(+Graph, +Options)
- Display a given graph in a window
- view_graph(+Graph, +Options, ?HandleFile)
- Display a given graph in an existing window
- write_graph(+Graph, +File)
- Write a picture of a graph as a postscript file
- write_graph(+Graph, +File, +Format)
- Write a picture of a graph as a file of a given format
- write_graph(+Graph, +File, +Format, +Options)
- Write a picture of a graph as a file of a given format
Graphviz itself must be downloaded and installed separately. It is readily available for most operating systems, and subject to the open-source Eclipse Public Licence.
The predicates in this library take graph data structures as defined by library(graph_algorithms), invoke graphviz's layout tools, and output the generated drawing in various file formats (which can then be viewed in a browser of dedicated viewer), or invoke a simple viewer directly.