[ library(graphviz) | Reference Manual | Alphabetic Index ]
view_graph(+Graph, +Options, ?HandleFile)
Display a given graph in an existing window
- A graph structure
- A list of Option:Value pairs
- String or variable
This predicate takes a graph, applies one of the graphviz layout
routines to it, and displays the result in a viewer window. If
the HandleFile option is a variable it will be bound the name of
the file which the viewer is rendering. By calling this predicate
again with the same file name, the viewer will re-load the file
WITHOUT creating a new window.
This predicate can be very useful for displaying graph structures
which change over time.
NOTE: This predicate will sleep for one second to give the viewer
a chance to notice that the file has changed and to re-read it.
This predicate is sensitive to its module context (tool predicate, see @/2).
view_graph / 1, view_graph / 2, library(graph_algorithms)