powered by
Given a decomposable graph, this functions finds a perfect numbering on the vertices using maximum cardinality search, and hereafter returns a list with two elements: "C" - A RIP-ordering of the cliques and "S" - A RIP ordering of the separators.
rip(adj, check = TRUE)
A named adjacency list of a decomposable graph
Boolean: check if adj is decomposable
A list with cliques and separators of adj
adj
mcs, is_decomposable
mcs
is_decomposable
# NOT RUN { x <- list(a = c("b", "d"), b = c("a", "c", "d"), c = c("b", "d"), d = c("a", "c", "b")) y <- rip(x) # Cliques: y$C # Separators: y$S # }
Run the code above in your browser using DataLab