17.2 Formatting Graphs in CLIM

You can format any graph in CLIM. The CLIM graph formatter is most successful with directed acyclic graphs (**DAG**). "Directed" means that the arcs on the graph have a direction. "Acyclic" means that there are no loops in the graph.

Here is an example of such a graph:

Figure 31. A Directed Acyclic Graph

To specify the elements and the organization of the graph, you provide CLIM with the following information:

- The root node
- A "node printer," that is, a function used to display each node. The function is passed the object associated with a node and the stream on which to do output.
- An "inferior producer," a function that takes one node and returns its inferior nodes (the nodes to which it points)

See Section 17.5, "Advanced Topics," for the graph formatting protocol.

CLIM 2.0 User's Guide - OCT 1998

Generated with Harlequin WebMaker