Learn R Programming

SBMSplitMerge (version 1.1.1)

blockmat.sbm: Block matrix

Description

converts block assignments of an sbm object to a matrix of block assignments

Usage

# S3 method for sbm
blockmat(SBM, kappa)

Arguments

SBM

an sbm object

kappa

number of blocks in matrix

Value

matrix with kappa rows and a 1 at (k,i) if node i is in block k under SBM