defaultModelObjectProto-class {dynamicGraph} | R Documentation |
An example class for the model object of dynamicGraph.
Objects can be created by calls of the form 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 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
.
The methods testEdge
of object
should return an object with the methods
label
and width
for labeling edges, see newDefaultTestObject
.
name
:"character"
:
The name
of the model. signature(object = "defaultModelObjectProto")
: ... signature(object = "defaultModelObjectProto")
: ... Jens Henrik Badsberg
defaultTestObjectProto-class
,
newDefaultModelObject
,
newDefaultTestObject
.