Calculate the likelihood of a nod belonging to each of block
nodelike(blocks, params, edges, i, sbmmod, ...)
an blocks
object
an params
object
an edges
object
the node of interest
an sbmmod
object
additional arguments for nodelike.blocks
likelihood of edges emanating from node i
the number of blocks considered is either the number of blocks in sbm (kappa)
or kappa+1
when sbmmod
has a variable number of blocks.
care is taken for data which is directed and with loops.