Class dg.graph
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:Object of class "dg.VertexList":
List of vertices
(each of class containing the class dg.Vertex)
created by returnVertexList
or exported from dynamicGraphMain.
blockList:Object of class "dg.BlockList":
List of blocks (each of class dg.Block)
created by setBlocks
or exported from dynamicGraphMain.
viewType:Object of class "character",
See dg.graphedges-class.
visibleVertices:Object of class "numeric",
See dg.graphedges-class.
visibleBlocks:Object of class "numeric",
See dg.graphedges-class.
oriented:Object of class "logical",
See dg.graphedges-class.
edgeList:Object of class "dg.VertexEdgeList",
See dg.graphedges-class.
blockEdgeList:Object of class "dg.BlockEdgeList",
See dg.graphedges-class.
factorVertexList:Object of class "dg.FactorVertexList",
See dg.graphedges-class.
factorEdgeList:Object of class "dg.FactorEdgeList",
See dg.graphedges-class.
extraList:Object of class "dg.VertexList",
See dg.graphedges-class.
extraEdgeList:Object of class "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
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)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.