A generic function for coercing an R object to a semigroup class.
Usage
as.semigroup(x, labels = NULL)
Arguments
x
an array representing the semigroup
labels
label strings for the semigroup
Value
An object of the `Semigroup' class
Details
Since many of the functions in the multiplex package require an object of the `Semigroup' class, this function produces this class object from an array representing the semigroup structure.