powered by
create a blocks object
blocks(z, kappa)
vector of block labels for each node
maximum number of blocks
a blocks object
blocks
stores the block allocations and total number of blocks for a stochastic block model
# NOT RUN { ## Assign six nodes to four blocks: b <- blocks(c(1,1,2,3,4,4), 4) print(b) plot(b) ## shows id two nodes are members of the same block # }
Run the code above in your browser using DataLab