simulate_network_batches: Simulate repeated networks

View source: R/experiments.R

simulate_network_batchesR Documentation

Simulate repeated networks

Description

Calls simulate_network() repetitions times and stacks the edge lists.

Usage

simulate_network_batches(repetitions, ..., seed = NULL)

Arguments

repetitions

Number of networks. A single positive whole number.

...

Arguments passed to simulate_network().

seed

Optional base seed. A single number, or NULL (the default). Network i uses seed + i - 1.

Value

A simulab_sim base data.frame edge list, one row per network and edge, with the column network followed by the columns simulate_network() returns (from, to and weight). The component settings, reached with as.data.frame(x, what = "settings"), holds one row per network with its generator arguments and realized edge count.

Examples

result <- simulate_network_batches(
  repetitions = 3, nodes = 20, model = "bernoulli", probability = 0.1, seed = 1
)
head(result)

simulab documentation built on Oct. 15, 2026, 5:08 p.m.