simulate_rnd_cascades {NetworkInference} | R Documentation |
Simulate a set of random cascades
Description
Simulate random cascades, for testing and demonstration purposes. No actual diffusion model is underlying these cascades.
Usage
simulate_rnd_cascades(n_cascades, n_nodes)
Arguments
n_cascades |
Number of cascades to generate. |
n_nodes |
Number of nodes in the system. |
Value
A data frame containing (in order of columns) node ids, event time and cascade identifier.
Examples
df <- simulate_rnd_cascades(10, n_nodes = 20)
head(df)
[Package NetworkInference version 1.2.4 Index]