Expand description

Susceptible-infected information spread module.

Structs

Observers data structure. Wraps cn::IndexMap of (node index, infection time) pairs, together with the recorded true infection source and true spread start time.

Functions

Initialize the SI information spread and perform a number of synchronous steps, starting from source. Returns the Observers structure.

Same as spread, but with source chosen randomly using the network’s random number generator. Returns the Observers structure.