# We can generate a sampler from a random graph
set.seed(7131)
ans <- new_rergmito(rbernoulli(4) ~ edges, theta = -.5)
# Five samples
ans$sample(5)
# or we can use some nodal data:
data(fivenets)
ans <- new_rergmito(
fivenets[[3]] ~ edges + nodematch("female"),
theta = c(-1, 1)
)
# Five samples
ans$sample(5) # All these networks have a "female" vertex attr
Run the code above in your browser using DataLab