Learn R Programming

parsec (version 1.2.0)

transitiveClosure: Transitive Closure

Description

The function computes the transitive closure of a reflexive and antisymmetric binary relation.

Usage

transitiveClosure(m)

Arguments

m

a generic square boolean matrix representing a reflexive and antisymmetric binary relation, an object of class cover or an object of class incidence.

Value

Matrix of the transitive closure of the input matrix m.

See Also

is.partialorder

Examples

Run this code
# NOT RUN {
m <- c(1, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1)
m <- matrix(m, 4, 4)

transitiveClosure(m)
# }

Run the code above in your browser using DataLab