powered by
Checks whether the input relation is transitive.
IsTransitive(rel)
A boolean value.
A two-columns character matrix, each row comprising an element (pair) of the binary relation.
rel <- matrix(c( "a", "b", "c", "b", "b", "d", "a", "d", "c", "d" ), ncol = 2, byrow = TRUE) chk<-IsTransitive(rel)
Run the code above in your browser using DataLab