# NOT RUN {
g1 <- ug(~a:b+b:c)
as(g1, "igraph")
as(g1, "matrix")
as(g1, "Matrix")
as(g1, "dgCMatrix")
## graph_as(g1, "ugList") ## Fails
## getCliques(g1) ## Works
l1 <- list(c("a" ,"b"), c("b", "c"))
graph_as(l1, "graphNEL", "ugList")
# }
Run the code above in your browser using DataLab