Learn R Programming

ess (version 1.1.2)

mcs: Maximum Cardinality Search

Description

Maximum Cardinality Search

Usage

mcs(adj, check = TRUE)

Arguments

adj

A named adjacency list of a decomposable graph

check

Boolean: check if adj is decomposable

Value

A list with a perfect numbering of the nodes and a perfect sequence of sets

Details

If adj is not the adjacency list of a decomposable graph an error is raised

Examples

Run this code
# 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