redges {SBMSplitMerge} | R Documentation |
Simulate edges
Description
Simulate edges from an sbm
object with a given edgemod
Usage
redges(SBM, edgemod, sym = TRUE, loops = FALSE, ...)
Arguments
SBM |
an |
edgemod |
an |
sym |
should the network be symmetric? |
loops |
should the network have self-loops? |
... |
additional arguments passed to |
Details
None
Value
an edges
object
Examples
## make an sbm model, sample data then plot and print:
model <- sbmmod(dma(2,5), param_beta(1,1,1,1), edges_bern())
s <- model$r(100)
e <- redges(s, model$edge)
plot(e)
plot(e, s)
print(e)
[Package SBMSplitMerge version 1.1.1 Index]