degreeSort function

Sort stochastic block model parameter in a unique way using its graphon

Sort stochastic block model parameter in a unique way using its graphon

degreeSort(thetaInit, outTheta = TRUE, outPerm = FALSE)

Arguments

  • thetaInit: stochastic block model parameter to be sorted
  • outTheta: if TRUE returns the sorted stochastic block model parameter
  • outPerm: if TRUE returns the permutation of the blocks of the stochastic block model to provide the sorted stochastic block model parameter

Returns

according to the values of outTheta and outPerm the function returns the sorted stochastic block model parameter or the associated permutation of the blocks of the stochastic block model or a list with both of them

Examples

theta1 <- list(pi=c(.5,.5), gamma=matrix((1:4)/8,2,2)) degreeSort(theta1) theta2 <- list(pi=c(.5,.5), gamma=matrix(4:1/8,2,2)) degreeSort(theta2)
  • Maintainer: Tabea Rebafka
  • License: GPL-2
  • Last published: 2023-06-07

Useful links