Function cnetworks::spread_si [−][src]
pub fn spread_si(net: &mut Network, steps: usize) -> Result<usize, String>
Performs the phase of information spreading according to the susceptible-infected diffusion model.
On each time step the nodes for which the infected
flag is true
will try to infect
their closest neighbors with probability given by connection strength, setting their
infected
flag to true
.