Learn R Programming

multiplex (version 2.3)

prev: Preview of the Semigroup Construction

Description

A function to preview the partial right multiplication table of the semigroup to assess the size of the complete semigroup.

Usage

prev(x)

Arguments

x
an array; usually with three dimensions of stacked matrices where the multiple relations are placed.

Value

Details

When the input data is large, i.e. having a dozen or more elements and/or more than five dimensions, it is recommended to perform this function before the semigroup construction in order to get the partial right multiplication table.

That is because the amount of undefined data in such table gives an idea of how much time may take to get the complete semigroup. However the performance depends mainly on whether the generator matrices are sparse and/or have a relative large number of elements for a semigroup construction of course.

See Also

semigroup, edgeT.

Examples

Run this code
## Create the data: 2 binary relations among 3 elements
arr <- round( replace( array(runif(18), c(3,3,2)), array(runif(18),
       c(3,3,2))>.5, 1 ) )

## preview it
prev(arr)

Run the code above in your browser using DataLab