View source: R/simulate_cascades.R
| simulate_rnd_cascades | R Documentation |
Simulate random cascades, for testing and demonstration purposes. No actual diffusion model is underlying these cascades.
simulate_rnd_cascades(n_cascades, n_nodes)
n_cascades |
Number of cascades to generate. |
n_nodes |
Number of nodes in the system. |
A data frame containing (in order of columns) node ids, event time and cascade identifier.
df <- simulate_rnd_cascades(10, n_nodes = 20)
head(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.