blocks {SBMSplitMerge} | R Documentation |
Blocks object
Description
create a blocks object
Usage
blocks(z, kappa)
Arguments
z |
vector of block labels for each node |
kappa |
maximum number of blocks |
Details
stores the block allocations and total number of blocks for a stochastic block model
Value
a blocks
object
Examples
## 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
[Package SBMSplitMerge version 1.1.1 Index]