Description Details Slots Extends Methods Note Author(s) See Also Examples
The class for edges between blocks and for edges between vertices and blocks.
The function is used in returnBlockEdgeList
.
dynamicGraphMain
will automatic update block edges
when vertices are moved between blocks.
oriented
:Object of class "logical"
,
see "dg.VertexEdge"
.
vertex.indices
:Object of class "numeric"
,
see also "dg.Edge"
.
Vector with abs(vertex.indices)
the indices of the nodes of the block edge.
If the index is positiv then the node is a vertex,
else it is a block.
width
:Object of class "numeric"
,
see "dg.Edge"
.
dash
:Object of class "character"
,
see "dg.Edge"
.
color
:Object of class "character"
,
see "dg.Edge"
.
label
:Object of class "character"
,
see "dg.Edge"
.
label.position
:Object of class "numeric"
,
see "dg.Edge"
.
Class "dg.Edge"
, directly.
Class "dg.Node"
, directly.
signature(object = "dg.BlockEdge")
:
Extract the types ("super classes": "Vertex"
or "Block"
)
of the vertices (nodes) of the edge.
signature(x = "dg.BlockEdge")
: ...
signature(object = "dg.BlockEdge")
: ...
The methods of dg.Edge
also applies for dg.BlockEdge
.
The method new
also accepts the argument vertices
or
vertexList
. The label
is then extracted from these vertices.
The length of vertices
should match vertex.indices
, where
vertex.indices
is used to select vertices form vertexList
.
Jens Henrik Badsberg
returnBlockEdgeList
,
dg.Edge-class
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
vertices <- returnVertexList(paste("V", 1:4, sep = ""))
block <- new("dg.Block", stratum = 1)
blockedge <- new("dg.BlockEdge", vertex.indices = c(4, -1),
vertices = new("dg.VertexList", list(vertices[[1]], block)))
str(blockedge)
color(blockedge)
label(blockedge)
labelPosition(blockedge)
width(blockedge)
nodeIndicesOfEdge(blockedge)
nodeTypesOfEdge(blockedge)
color(blockedge) <- "Black"
label(blockedge) <- "V1~1"
labelPosition(blockedge) <- c(0, 1, 2)
width(blockedge) <- 1
nodeIndicesOfEdge(blockedge) <- c(1, -1)
str(blockedge)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.