# create two binary relations among three elements
arr <- round( replace( array( runif(18), c(3 ,3, 2) ), array( runif(18),
c(3, 3, 2) ) > .9, 3 ) )
# optionally put labels
dimnames(arr)[[3]] <- list("n", "m")
# look at the semigroup with numerical format
semigroup(arr)
Run the code above in your browser using DataLab