Closed debmalya191 closed 5 years ago
in the discrete time model, a node v
might have multiple infected neighbors. Of these neighbors, perhaps more than one would transmit to v
in the given time step. Only the first of these is successful. So if we want to assign the infection to a particular source, we will choose at random from all of the potential infectors of v
in that time step.
So this line adds a transmission to our collection of transmissions. The transmission occurs at time t[-1]
, it is credited to a randomly selected infector of v
, and it is to v
.
thanks a lot!
@joelmiller I was browsing through this code in discrete_SIR-
[if rho is not None and initial_infecteds is not None: raise EoN.EoNError("cannot define both initial_infecteds and rho")
and I was wondering what does this line do- " transmissions.append((t[-1], random.choice(infector[v]), v))" in the full_data part of the code