powered by
(squared) L2-norm of the graphons associated with two stochastic block model parameters
graphonL2norm(theta1, theta2)
a stochastic block model parameter
theta1 <- list(pi=c(.5,.5), gamma=matrix((1:4)/8,2,2)) theta2 <- list(pi=c(.5,.5), gamma=matrix(4:1/8,2,2)) graphonL2norm(theta1, theta2)
Run the code above in your browser using DataLab