The code below for a model Susceptible - infected model (SI) is applied without regard to the network topology, I want apply the model on spicial networks to evaluate my algorithm. As well as the case of model SIR ( Susceptible - infected- recovery)

So<-32720000 # initial Susceptible
Io<-1 #initial Infected
alpha<-0.25 #infected rate
for (i in 1:100){
Son<-So
Ion<-Io
So<-Son - alphaIonSon
Io<-Ion+ alphaIonSon
}

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.