
Last chance! 50% off unlimited learning
Sale ends in
FactorEdgeProto
for an edge from a vertex to a factor node in the bipartite graph.newFactorEdge(node.indices, nodes = NULL, width = 2,
color = "DarkOliveGreen", type = NULL,
label = ifelse(is.null(nodes), "",
paste(Labels(nodes), collapse = "~")))
abs(node.indices)
the indices of the nodes of the factor edge.
If the index is positiv then the node is a vertex,
else it is the factor vertex.nodes
of the factor edge. Used for
setting the default label.width
of the factor edge.color
of the factor edge.type
of the factor edge.label
of the factor edge.FactorEdgeProto
.newVertexEdge
vertices <- returnVertexList(paste("V", 1:4, sep = ""))
factor <- newFactor(1:3, vertices[1:3], type = "Generator")
factoredge <- newFactorEdge(c(1, -1), 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