blocks: Blocks object

Description Usage Arguments Details Value Examples

View source: R/blocks.R

Description

create a blocks object

Usage

1

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

1
2
3
4
## 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

SBMSplitMerge documentation built on July 1, 2020, 5:23 p.m.