With a graph model, you can use already-built graphs, nodes, and
links that have been developed without Rogue Wave® JViews and
apply the layout algorithms of Rogue Wave JViews Diagrammer. The
graph model provides the basic, generic operations for performing
the layout.
A subclass must be written to adapt the
graph model to specific graph, node, and link objects. This
subclass plays the role of an “adapter” or bridge between the
application objects and the graph model. This often makes it much
easier to add graph features to existing applications.
The following figure shows the relationship
between the graph model and graph layout algorithms, Rogue Wave
JViews graphers, non-JViews graphers, and manager views.
![UML diagram
showing IlvGraphLayout, IlvGraphModel, IlvGrapherAdapter, IlvGrapher,
and Custom Adapter](../../../GraphLayout/_media/dia_graphmodel_default.png)
Graph Model in the Rogue Wave JViews Diagrammer Graph
Layout Framework
You can see from this diagram that instead of using a concrete
graph class such as IlvGrapher directly, the layout algorithms
interact with the graph through the graph model. This is the key
for achieving a truly generic graph layout framework. Note that
the use of an IlvManagerView to display the result of the
layout is not mandatory.