Learn R Programming

parsec (version 1.2.7)

gen.downset: Antichain generating a given downset

Description

The function returns the antichain generating the input downset Q, given the incidence matrix z of the poset.

Usage

gen.downset(z, Q = 1)

Value

A boolean vector.

Arguments

z

an incidence matrix.

Q

a vector (boolean, numeric indexing elements, or character with elements' names) identifying the input downset.

See Also

gen.upset

Examples

Run this code
lv <- c(2, 3, 2)
prof <- var2prof(varlen = lv)

z <- getzeta(prof)
down <- c("111", "211", "112", "212")
gen <- gen.downset(z, down)

plot(z, lwd = 1 + (rownames(prof$profiles)%in%down), col = 1 + gen,
sub = "bold = the downset, red = the antichain generating the downset")

Run the code above in your browser using DataLab