Description Objects from the Class Slots Extends Methods Note Author(s) See Also Examples
A skeleton class for the classes of vertices.
Objects has the methods for extracting and setting the slots for vertices.
name
:Object of class "character"
with the name
of the vertex.
Should be a valid name on variables for your model object.
index
:Object of class "numeric"
with the index
of the vertex,
the position of the vertex in a vertex list.
position
:Object of class "numeric"
with the position
of the vertex.
Vertices in the same dynamic graph should
have the same number of coordinates.
blockindex
:Object of class "numeric"
with the blockindex
of the vertex.
stratum
:Object of class "numeric"
with the stratum
of the vertex.
constrained
:Object of class "logical"
:
If TRUE, then the vertex can not be dragged
out of the block of the vertex.
color
:Object of class "character"
with the color
of the vertex.
label
:Object of class "character"
with the label
of the vertex.
label.position
:Object of class "numeric"
with the label.position
of the vertex.
Labels of vertices in the same dynamic graph
should have the same number of coordinates.
Class "dg.Node"
, directly.
signature(x = "dg.Vertex")
: ...
signature(object = "dg.Vertex")
: ...
signature(x = "dg.Vertex")
: ...
signature(object = "dg.Vertex")
: ...
signature(.Object = "dg.Vertex")
: ...
signature(x = "dg.Vertex")
: ...
signature(object = "dg.Vertex")
: ...
signature(x = "dg.Vertex")
: ...
signature(object = "dg.Vertex")
: ...
signature(x = "dg.Vertex")
: ...
signature(object = "dg.Vertex")
: ...
signature(x = "dg.Vertex")
: ...
signature(object = "dg.Vertex")
: ...
signature(x = "dg.Vertex")
: ...
signature(object = "dg.Vertex")
: ...
signature(object = "dg.Node")
: ...
signature(x = "dg.Vertex")
: Not implemented.
signature(object = "dg.Vertex")
: Not implemented.
signature(x = "dg.Vertex")
: Not implemented.
signature(object = "dg.Vertex")
: Not implemented.
The dg.Vertex
class has the methods
name
, label
, labelPosition
,
position
, stratum
,
blockindex
,
constrained
,
color
, and index
for extracting values of the object and the replacement methods
name<-
, label<-
, labelPosition<-
,
position<-
, stratum<-
,
blockindex<-
,
constrained<-
,
color<-
, and index<-
.
The method draw
is used to draw a vertex,
and items can be added to the pop up menu of the vertex
by the method addToPopups
.
Some of these methods also applies for
edges (dg.Edge
),
blocks (dg.Block
),
block edges
(dg.BlockEdge
),
factor vertices (dg.FactorVertex
)
and edges from vertices to factors (dg.FactorEdge
).
Jens Henrik Badsberg
returnVertexList
,
dg.Node-class
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | a <- new("dg.DiscreteVertex", name = "a", label = "A",
index = 1, position = c(0, 0, 0))
str(a)
color(a)
label(a)
labelPosition(a)
name(a)
index(a)
position(a)
stratum(a)
color(a) <- "red"
label(a) <- "A vertex"
labelPosition(a) <- c(1, 2, 3)
name(a) <- "Capital.A"
index(a) <- -1
position(a) <- c(10, 20, 30)
stratum(a) <- 1
str(a)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.