dg.ExtraEdge-class: Class dg.ExtraEdge

Description Slots Extends Methods Note Author(s) See Also Examples

Description

The class for the edges between vertices and extra vertices.

Slots

vertex.indices:

Object of class "numeric", see "dg.Edge". If the index is positiv then the node is a vertex, else it is the extra vertex.

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".

Extends

Class "dg.Edge", directly. Class "dg.Node", directly.

Methods

nodeTypesOfEdge

signature(object = "dg.ExtraEdge"): Extract the types ("super classes": "Vertex" or "Extra") of the vertices (nodes) of the edge.

Note

The methods (except oriented) of dg.Edge also applies for dg.ExtraEdge.

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.

Extra vertices and nodes are used in demo(dg.USArrests) to display the loadings in a biplot.

Author(s)

Jens Henrik Badsberg

See Also

returnExtraEdgeList, dg.Edge-class, and dg.TextVertex-class.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
vertices  <- returnVertexList(paste("V", 1:4, sep = ""))
extra     <- returnVertexList(paste("E", 1:4, sep = ""))
extraedge <- new("dg.ExtraEdge", vertex.indices = c(3, -2), 
                 vertices = new("dg.VertexList", 
                                c(vertices[3], extra[2])))

str(extraedge)

color(extraedge)
label(extraedge)
labelPosition(extraedge)
width(extraedge)
nodeIndicesOfEdge(extraedge)
nodeTypesOfEdge(extraedge)

color(extraedge) <- "Black"
label(extraedge) <- "Gryf"
labelPosition(extraedge) <- c(0, 1, 2)
width(extraedge) <- 1
nodeIndicesOfEdge(extraedge) <- c(1, -1)
str(extraedge)

dynamicGraph documentation built on May 29, 2017, 8:01 p.m.