dynamicGraph (version 0.2.2.6)

returnFactorVerticesAndEdges: Class dg.FactorVertexList: The factor vertex list

Description

Create factor vertex and factor edge lists.

Objects can be created by calls of the form new("dg.FactorVertexList", ...).

Usage

returnFactorVerticesAndEdges(Vertices, factors = NULL, types = "Generator", factorVertexColor = "default", factorEdgeColor = "DarkOliveGreen", fixedFactorPositions = FALSE, factorClasses = validFactorClasses())

Arguments

Vertices
The list of Vertices, each containing the class dg.Vertex.
factors
The list of vectors identifying the factors. Each item in the list is a vector of the indices of vertices of a factor.
types
The types of the factors. Either a single type or a list of the same length as factors. Each item of types should match the labels of factorClasses, and is used to set the class of the factor vertex.
factorVertexColor
The factorVertexColor of the factor vertices.
factorEdgeColor
The factorEdgeColor of the factor edges.
fixedFactorPositions
Logical. If fixedFactorPositions is setto TRUE then the factor vertices will not follow the moved vertices.
factorClasses
The valid factorClasses.

Value

A list with components
FactorVertices
The list of factor vertices, each of class containing dg.FactorVertex.
FactorEdges
The list of factor edge, each of class containing dg.FactorEdge.
PairEdges
A matrix with the edges of the graph, two columns with the indices of the vertices of two ends of the edges.

Slots

.Data:
Object of class "list".

Extends

Class "dg.NodeList", directly. Class "dg.list", directly. Class "list", from data part. Class "vector", by class "dg.NodeList". Class "vector", by class "dg.list". Class "vector", by class "list".

Methods

No methods defined with class "dg.FactorVertexList" in the signature.

Details

The argument factors is a list of vectors identifying the factors, or generators. Each item in the list is a vector with of the indices (or names) of the vertices of a factor, or variables of a generator. A factor vertex is made for each factor, and factor edges from this factor vertex to the vertices of the factor or added to the factor edge list. Also the edges between pairs of the vertices in the factors are returned.