new("dg.simple.graph", ...).viewType:"character":
A text string with the type of view. vertex.names:"vector":
A vector with text strings for the names of the vertices.types:"character":
A vector with text strings for the types,
labels of dg.Vertex, of the vertices. labels:"vector":
A vector with text strings for the labels of the vertices. from:"vector":
If not edge.list is given:
The indices of the first endpoints of the edges. to:"vector":
If not edge.list is given:
The indices of the second endpoints of the edges. edge.list:"list":
If not from and to are given:
A list where each item specifies an edge by a vector
of the indices or names of the vertices. edge.types:"character":
A vector of text strings giving the types of the
edges, identify which classes the edges should be of,
containing the dg.VertexEdge. blocks:"list":
A list defining the blocks:
Each item is the vector of the indices of the vertices of the
block, or the vector with text strings for the names of the vertices
of the block.
The arguments right.to.left, nested.blocks
and blockColors are here used in setBlocks
to control the layout of the blocks. block.tree:"list":
If not the argument blocks is used:
A structure with the blocks in a block.tree.
The arguments overlaying and blockColors are here used
in setTreeBlocks to control the layout of the blocks. oriented:"logical":
Logical. If oriented is set to TRUE
then the edges are oriented, also when no block structure is given. factors:"list":
A list defining the factor vertices:
Each item is the vector of the indices of the vertices of a factor. texts:"character":
A vector of text strings, for additional labels.
These labels will be set by 'ExtraVertices'
of class dg.TextVertex-class. extra.from:"vector":
If not extra.edge.list is given:
The indices of the first endpoints of the extra edges,
negative for extra vertices. extra.to:"vector":
If not extra.edge.list is given:
The indices of the second endpoints of the extra edges,
negative for extra vertices. extra.edge.list:"list":
If not extra.from and extra.to
are given: A list where each item specifies an extra edge by a vector
of the indices or names of the vertices or extra vertices,
negative indices for extra vertices. signature(object = "dg.simple.graph"): ... signature(object = "dg.simple.graph"): ... signature(from = "dg.simple.graph", to = "dg.graph"): ... signature(object = "dg.simple.graph"): ... signature(object = "dg.simple.graph"): ... signature(object = "dg.simple.graph"): ... dg.graph-class, and DynamicGraph.
x <- new("dg.simple.graph", vertex.names = c("a", "b"),
from = 1, to = 2) ; str(x)
dg(new("dg.simple.graph", vertex.names = c("a", "b"),
edge.list = list(c(1, 2))))
Run the code above in your browser using DataLab