eon

Modified SIR model

陌路散爱 提交于 2021-01-29 11:17:22
问题 I am making a modified SIR model with an added vaccination parameter V. InitIALLY all the nodes in the graph are susceptible and there are a few initially infected people. The initial infected people neighbours are first vaccinated with prob w (which means they cant be infected) and then they are infected with prob b. The total number of vaccinated people is controlled by Vl which is a fraction of the total population. Here is my code- import networkx as nx import random import scipy from