data(gmG)
if (require(Rgraphviz)) {
## show graph
plot(gmG$g, main = "True DAG")
}
## prepare skeleton use in example
g <- wgtMatrix(gmG$g) ## compute weight matrix
g <- 1*(g != 0) # wgts --> 0/1; still lower triangular
print.table(g, zero.print=".")
skel <- g + t(g) ## adjacency matrix of skeleton
## estimate unshielded triples -- there are 13 :
(uTr <- find.unsh.triple(skel))
Run the code above in your browser using DataLab