returnEdges {CoCoRaw} | R Documentation |
Return a matrix with the indices of the vertices of the edges. The edges can be the edges of the model, the edges not in the model, or the model can be ignored (and thus the edges are returned from the saturated model according to the fixing of edges). And the edges can be edges not fixed in the model, edges fixed in the model, or the fixing of edges can be ignored.
returnEdges(model = "current", edges = "in.model", fix = FALSE, data = NULL, object = .object.of.model(model, data = data, ...), ...)
model |
See returnModel . |
edges |
Text string: "in.model" ,
"all" , or "not.in.model" .
Default: "in.model" . |
fix |
Text string: "fix.edges" ,
"ignore.fixing" (ignore fixing of edges),
or "not.fix.edges" .
Default: "not.fix.edges" . |
data |
See exportCoCo . |
object |
See exportCoCo . |
... |
Additional arguments to generate the CoCo object
from the data argument. See propertyModel . |
A matrix of integers with the indices of the variables of the edges.
Fixing of edges is set by backward
,
forward
, and by ehForceFix
.
Jens Henrik Badsberg
backward
, forward
,
eh
, ehForceFix
,
returnFix
and showOptions
.
library(CoCoCg); # Without "data" require ending the CoCo object: # returnEdges("ab,xy", data = "From.input", continuous = "xy"); # endCoCo(); # With CoCo object: data(Rats); CoCoObject <- makeCoCoCg(); enterDataFrame(Rats, object = CoCoObject); Base <- makeModel(enterModel("[[ab]] / [[ay][ax][bx]] / [[xy]]", object = CoCoObject)); Current <- makeModel(enterModel("[[a][b]] / [[ay][ax][bx]] / [[xy]]", object = CoCoObject)); showModel("all"); returnEdges(object = CoCoObject); returnEdges("base", object = CoCoObject); # Does not work ?!? returnEdges(Base, object = CoCoObject); returnEdges(1, object = CoCoObject); returnEdges("current", object = CoCoObject); returnEdges(Current, object = CoCoObject); returnEdges(4, object = CoCoObject); returnEdges("last", object = CoCoObject); returnEdges(8, object = CoCoObject); # ?!?: Should return NULL!!! returnEdges("ab", object = CoCoObject); returnEdges("xy", object = CoCoObject); returnEdges("axy", object = CoCoObject); backward(recursive = TRUE, headlong = TRUE, coherent = TRUE, follow = TRUE, fix.edges = "xy", object = CoCoObject); # .fix.edges("xy", object = CoCoObject); returnEdges(object = CoCoObject); returnEdges(fix = "all", object = CoCoObject); returnEdges(fix = "fix.edges", object = CoCoObject); returnEdges(fix = "non.fix.edges", object = CoCoObject); returnEdges(edges = "all", object = CoCoObject); returnEdges(edges = "in.model", object = CoCoObject); returnEdges(edges = "not.in.model", object = CoCoObject); returnEdges(edges = "all", fix = "all", object = CoCoObject); returnEdges(edges = "in.model", fix = "all", object = CoCoObject); returnEdges(edges = "not.in.model", fix = "all", object = CoCoObject); returnEdges(edges = "all", fix = "fix.edges", object = CoCoObject); returnEdges(edges = "in.model", fix = "fix.edges", object = CoCoObject); returnEdges(edges = "not.in.model", fix = "fix.edges", object = CoCoObject); returnEdges(edges = "all", fix = "non.fix.edges", object = CoCoObject); returnEdges(edges = "in.model", fix = "non.fix.edges", object = CoCoObject); returnEdges(edges = "not.in.model", fix = "non.fix.edges", object = CoCoObject); endCoCo(object = CoCoObject);