[ library(visualization) | Reference Manual | Alphabetic Index ]
close_visualization(+Handle)
Stop the visualization, close all log files and flush all file output
- Handle
- an opaque data structure for the visualization
Description
This predicate should be called at the end of a program to close the visualization logs, flush all file output and reset the internal data structures.
Examples
top(N,L):-
    length(L,N),
    L :: 1..N,
    alldifferent(L),
    create_visualization([],Handle),
    add_visualizer(Handle,vector(L),[]),
    number_variables(Handle,L,Terms),
    root(Handle),
    search(Terms,1,first_fail,tree_indomain(Handle,_),complete,[]),
    solution(Handle),
    close_visualization(Handle).
See Also
visualize_tree : solution / 1, visualize_tree : try / 4, visualize_tree : failure / 4, visualize_tree : tree_indomain / 3, draw_visualization / 1