make_play: Simulating multiple diffusion processes

make_playR Documentation

Simulating multiple diffusion processes

Description

Simulating multiple diffusion processes

Usage

play_diffusions(
  .data,
  ...,
  times = 5,
  strategy = "sequential",
  verbose = FALSE
)

Arguments

.data

An object of a manynet-consistent class:

  • matrix (adjacency or incidence) from {base} R

  • edgelist, a data frame from {base} R or tibble from {tibble}

  • igraph, from the {igraph} package

  • network, from the {network} package

  • tbl_graph, from the {tidygraph} package

...

Other parameters inherited from manynet::play_diffusion().

times

Integer indicating number of simulations. By default times=5, but 1,000 - 10,000 simulations recommended for publication-ready results.

strategy

If {furrr} is installed, then multiple cores can be used to accelerate the simulations. By default "sequential", but if multiple cores available, then "multisession" or "multicore" may be useful. Generally this is useful only when times > 1000. See {furrr} for more.

verbose

Whether the function should report on its progress. By default FALSE. See {progressr} for more.

Examples

# plot(play_diffusions(smeg, times = 10))

migraph documentation built on June 20, 2025, 5:08 p.m.