Function to get the labels of the unique relations of the semigroup, or the generators and compound relations that are the elements of the complete semigroup.
Usage
strings(x, equat = FALSE, k = 2, smpl, valued)
Value
An object of ‘Strings’ class.
wt
the generators and compound relations
ord
the order of the structure
st
the labels of the unique relations
equat
the equations among strings of relations
Arguments
x
an array; usually with three dimensions of stacked matrices where the multiple relations are placed.
equat
(logical) should the equations be included in the output?
k
length of the strings in the equations
smpl
(optional and logical) whether to simplify or not the string relations
valued
(logical) whether the strings are with a valued format
Author
Antonio Rivero Ostoic
Details
The strings are the unique relations, which constitute the elements of the complete semigroup.
These are both the generators and the compound relations after applying the Axiom of Quality, which means that even some generators can be disregarded.
This function is especially useful to construct the partial order of relations and to establish the set of equations in the relational structure.
References
Boorman, S.A. and H.C. White, “Social Structure from Multiple Networks. II. Role Structures.” American Journal of Sociology, 81 (6), 1384-1446. 1976.
# create the data: two binary relations among three elementsarr <- round( replace( array(runif(18), c(3,3,2)), array(runif(18),
c(3,3,2))>.5, 1 ) )
# get the stringsstrings(arr)