Description Usage Arguments Value Examples
Simulate random cascades, for testing and demonstration purposes. No actual diffusion model is underlying these cascades.
1 | 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.
1 2 | 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.