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

1
gen.downset(z, Q = 1)

Arguments

z

an incidence matrix.

Q

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

Value

A boolean vector.

See Also

gen.upset

Examples

1
2
3
4
5
6
7
8
9
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")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.