powered by
Maximum Cardinality Search
mcs(adj, check = TRUE)
A named adjacency list of a decomposable graph
Boolean: check if adj is decomposable
A list with a perfect numbering of the nodes and a perfect sequence of sets
If adj is not the adjacency list of a decomposable graph an error is raised
# NOT RUN { x <- list(a = c("b", "d"), b = c("a", "c", "d"), c = c("b", "d"), d = c("a", "c", "b")) mcs(x) # }
Run the code above in your browser using DataLab