[ library(graphviz) | The ECLiPSe Libraries | Reference Manual | Alphabetic Index ]

view_graph(+Graph, +Options, ?HandleFile)

Display a given graph in an existing window
Graph
A graph structure
Options
A list of Option:Value pairs
HandleFile
String or variable

Description

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 usefull 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.

Modules

This predicate is sensitive to its module context (tool predicate, see @/2).

See Also

view_graph / 1, view_graph / 2, library(graph_algorithms)