powered by
Checks whether the input binary relation is reflexive.
IsReflexive(set, rel)
A boolean value.
A list of strings (the names of the elements of the set, on which the binary relation is defined).
A two-columns character matrix, each row comprising an element (pair) of the binary relation.
set<-c("a", "b", "c", "d", "e") rel <- matrix(c( "a", "b", "c", "b", "b", "d", "a", "a", "b", "b", "c", "c" ), ncol = 2, byrow = TRUE) chk <- IsReflexive(set, rel)
Run the code above in your browser using DataLab