redges: Simulate edges

Description Usage Arguments Details Value Examples

View source: R/edges.R

Description

Simulate edges from an sbm object with a given edgemod

Usage

1
redges(SBM, edgemod, sym = TRUE, loops = FALSE, ...)

Arguments

SBM

an sbm object

edgemod

an edgemod object

sym

should the network be symmetric?

loops

should the network have self-loops?

...

additional arguments passed to edgemod$r

Details

None

Value

an edges object

Examples

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

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