dynamicGraph (version 0.2.2.6)

dg.FactorEdge-class: Class dg.FactorEdge

Description

The class for the bipartite graph edges between vertices and factors.

Arguments

Extends

Class "dg.Node", directly. Class "dg.Edge", directly.

See Also

returnFactorEdgeList, dg.Edge-class, and dg.FactorVertex-class.

Examples

Run this code
vertices   <- returnVertexList(paste("V", 1:4, sep = ""))
factor     <- new("dg.FactorVertex", vertex.indices = 1:3, 
                  vertexList = vertices)
factoredge <- new("dg.FactorEdge", vertex.indices = c(1, -1), 
                  vertices = new("dg.VertexList", list(vertices[[1]], factor)))

str(factoredge)

color(factoredge)
label(factoredge)
labelPosition(factoredge)
width(factoredge)
nodeIndicesOfEdge(factoredge)
nodeTypesOfEdge(factoredge)

color(factoredge) <- "Black"
label(factoredge) <- "V1~V1:2:3"
labelPosition(factoredge) <- c(0, 1, 2)
width(factoredge) <- 1
nodeIndicesOfEdge(factoredge) <- c(1, -1)
str(factoredge)

Run the code above in your browser using DataLab