Last chance! 50% off unlimited learning
Sale ends in
semiring(x, type = c("balance", "cluster"), symclos = TRUE, transclos = TRUE, labels = NULL, k = 2)
Signed
' class
Semiring
' class.
The items included are:A semiring combines two different kinds of operations with a single underlying set, and it can be seen as an abstract semigroup with identity under multiplication and a commutative monoid under addition. Semirings are useful to determinate whether a given signed network is balanced or clusterable. The symmetric closure evaluates this by looking at semicycles in the system; otherwise the evaluation is through closed paths.
Doreian, P., V. Batagelj and A. Ferligoj Generalized Blockmodeling. Cambridge University Press. 2004.
signed
, as.signed
## Create the data: two sets with a pair of binary relations
## among three elements
arr <- round( replace( array( runif(18), c(3 ,3, 2) ), array( runif(18),
c(3, 3, 2) ) > .5, 3 ) )
## Make the signed matrix with two types of relations
sg <- signed(arr)
## Establish the semiring structure
semiring(sg)
Run the code above in your browser using DataLab