Learn R Programming

dynamicGraph (version 0.2.2.6)

dg.BlockEdge-class: Class dg.BlockEdge

Description

The class for edges between blocks and for edges between vertices and blocks.

Arguments

Extends

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

Details

The function is used in returnBlockEdgeList. dynamicGraphMain will automatic update block edges when vertices are moved between blocks.

See Also

returnBlockEdgeList, dg.Edge-class.

Examples

Run this code
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)

Run the code above in your browser using DataLab