validate.partialorder.incidence: validate.partialorder.incidence

View source: R/validate.partialorder.incidence.R

validate.partialorder.incidenceR Documentation

validate.partialorder.incidence

Description

The function checks whether the boolean square matrix m represents a partial order. If yes, the function returns the same input matrix as a S3 class object incidence. Otherwise, the unfulfilled partial order properties of matrix m are returned.

Usage

validate.partialorder.incidence(m)

Arguments

m

a boolean square matrix.

See Also

transitivity, binary, reflexivity,

antisymmetry, is.preorder, is.partialorder

Examples

M <- c(TRUE, FALSE, FALSE, FALSE, TRUE, TRUE, FALSE, FALSE, TRUE, FALSE, TRUE,
FALSE, TRUE, TRUE, TRUE, TRUE)
M <- matrix(M, 4, 4)
rownames(M) <- colnames(M) <- LETTERS[1:4]

M <- validate.partialorder.incidence(M)

plot(M)

parsec documentation built on Aug. 19, 2023, 5:07 p.m.