| dg.graph-class {dynamicGraph} | R Documentation |
The representation of a graph for dynamicGraph. Vertices, blocks, viewType, edges, etc. are here the dynamicGraph objects.
dg(object, ...)
object |
The graph. |
... |
Additional arguments. |
Objects can be created by calls of the form new("dg.graph", ...).
vertexList:"dg.VertexList":
List of vertices
(each of class containing the class dg.Vertex)
created by returnVertexList
or exported from dynamicGraphMain. blockList:"dg.BlockList":
List of blocks (each of class dg.Block)
created by setBlocks
or exported from dynamicGraphMain.
viewType:"character",
See dg.graphedges-class. visibleVertices:"numeric",
See dg.graphedges-class. visibleBlocks:"numeric",
See dg.graphedges-class. oriented:"logical",
See dg.graphedges-class. edgeList:"dg.VertexEdgeList",
See dg.graphedges-class. blockEdgeList:"dg.BlockEdgeList",
See dg.graphedges-class. factorVertexList:"dg.FactorVertexList",
See dg.graphedges-class. factorEdgeList:"dg.FactorEdgeList",
See dg.graphedges-class. extraList:"dg.VertexList",
See dg.graphedges-class. extraEdgeList:"dg.ExtraEdgeList",
See dg.graphedges-class.
Class "dg.graphedges", directly.
signature(from = "dg.simple.graph", to = "dg.graph"): ... signature(object = "dg.graph"): ... signature(object = "dg.graph"): ... signature(object = "dg.graph"): ... signature(object = "dg.graph"): ... signature(object = "dg.graph"): ...
Jens Henrik Badsberg
dg.simple.graph-class, and dynamicGraphMain.
from <- c("contry", "contry", "race", "race", "sex", "sex")
to <- c( "sex", "race", "hair", "eye", "education", "age")
vertexnames <- unique(sort(c(from, to)))
vertices <- returnVertexList(vertexnames)
edge.list <- vector("list", length(to))
for (j in seq(along = to)) edge.list[[j]] <- c(from[j], to[j])
edges <- returnEdgeList(edge.list, vertices, color = "red", oriented = TRUE)
graph <- new("dg.graph", vertexList = vertices, edgeList = edges); str(graph)
dg(graph)