new("defaultModelObjectProto", ...).This is an example of the object for interface between
dynamicGraphMain and your models.
The model object of the call of dynamicGraphMain
should have the methods modifyModel and testEdge.
When the graph is modified, by adding or dropping vertices or edge,
the method modifyModel is called on the argument object
of dynamicGraphMain.
If a value different from NULL is returned from modifyModel
at the key event "add edge" then the edge is added to the graph window.
If NULL is returned redrawGraphWindow
then can be used to draw the new graph.
If a value different from NULL is returned from modifyModel
then redrawGraphWindow should not be called
from modifyModel for the action add edge.
If the edge is to be added in a slave window then the edges to
draw can be returned in a component with name edgeList (or
newEdges$graphEdges) of the returned structure.
If an object is returned in the list of the returned
value from modifyModel then object in
dynamicGraphMain is replaced by this object,
and the object is also assigned in the top level environment,
if objectName was given to dynamicGraphMain.
If a factor edge is added then the component edgeList with the
edges of the new model should be available in the returned structure.
Similar for the key events "dropEdge", "addVertex" and "dropVertex".
The methods testEdge of object should return an object
with the methods
label and widthfor labeling edges, see newDefaultTestObject.
defaultTestObjectProto-class,
newDefaultModelObject,
newDefaultTestObject.