# NOT RUN {
edges <- matrix(c(1,2,2,3,2,4,2,5,2,6,3,4,4,5,5,6),ncol=2,byrow=TRUE)
setList <- perfSets(edges=edges, p=6, varType=0, from=1)
# > str(setList)
# List of 4
# $ cliques :List of 4
# ..$ : int [1:2] 1 2
# ..$ : int [1:3] 2 3 4
# ..$ : int [1:3] 2 4 5
# ..$ : int [1:3] 2 5 6
# $ histories :List of 4
# ..$ : int [1:2] 1 2
# ..$ : int [1:4] 1 2 3 4
# ..$ : int [1:5] 1 2 3 4 5
# ..$ : int [1:6] 1 2 3 4 5 6
# $ separators:List of 4
# ..$ : NULL
# ..$ : int 2
# ..$ : int [1:2] 2 4
# ..$ : int [1:2] 2 5
# $ residuals :List of 4
# ..$ : int [1:2] 1 2
# ..$ : int [1:2] 3 4
# ..$ : int 5
# ..$ : int 6
# }
Run the code above in your browser using DataLab