dynamicGraph (version 0.2.2.6)

dg.Block-class: Class dg.Block

Description

The class for the blocks.

Arguments

Extends

Class "dg.Node", directly.

See Also

setBlocks, setTreeBlocks, dg.Node-class.

Examples

Run this code
b <- new("dg.Block")

str(b)

color(b)
label(b)
labelPosition(b)
name(b)
index(b)
position(b)
stratum(b)
ancestors(b)
descendants(b)
visible(b)

color(b) <- "grey"
label(b) <- "NameAndLabel"
labelPosition(b) <- c(1, 2, 3)
# name(b) <- "NameAndLabel" # Not possible!!!
index(b) <- 3
position(b) <- matrix(c( 10,  20,  30,  40, 
                        110, 120, 130, 140), byrow = TRUE, ncol = 4)
stratum(b) <- 1
ancestors(b) <- c(1, 2)
descendants(b) <- c(4, 5)
visible(b) <- FALSE

str(b)

Run the code above in your browser using DataLab