The remainder of our paper is devoted to test the mean field model under "real world conditions" which we mimic by
random walkers navigating independently on an undirected connected (ergodic) graph. In our simulations we focused on Barabási-Albert (BA), Erdös-Rényi (ER) and Watts-Strogatz (WS) graphs [
29,
42,
43] (see
Appendix A.3 for a brief recap) and implemented the compartments and transmission pathway for walkers and nodes outlined in
Section 2. A susceptible walker gets infected with probability
by visiting an infected node, and a susceptible node gets infected with probability
at a visit of an infectious walker. We assume that the infection probabilities
are constant for all nodes and walkers, respectively. They are related yet not identical with the macroscopic rate constants
. A critical issue is whether the simple bi-linear forms for the mean field infection rates (
1) still capture well the complexity of the spreading in such "real world" networks. One goal of the subsequent case study is to explore this question.
We characterize the network topology by
nodes with the
adjacency matrix
where
if the pair of nodes
is connected by an edge, and
if the pair is disconnected. Further, we assume
to avoid self-connections of nodes. We confine us to undirected networks where the edges have no direction and the adjacency matrix is symmetric. The degree
of a node
i counts the number of neighbor nodes (edges) of this node. Each walker
performs simultaneous independent random steps at discrete time instants
from one to another connected node. The steps from a node
i to one of the neighbor nodes are chosen with probability
, following for all walkers the same transition matrix
which is normalized
. This is a common way to connect the network topology with simple Markovian random walks [
24,
42]. In the simulations the departure nodes at
of the walkers are randomly chosen. The path of each walker is independent and not affected by contacts with other walkers or by transition events from one to another compartment.
Case study and discussion
In order to compare the epidemic dynamics of the mean field model and random walk simulations we integrate the stochastic evolution Eqs. (
2) numerically as follows. We average the increments of the compartmental fractions in a generalized Monte-Carlo sense converging towards the convolutions of the right hand side of (
9) where we use the Monte-Carlo convergence feature
for random variables
T drawn from PDFs
. We perform this average for any time increment
with respect to all involved independent random time spans
(see
Appendix A.1) and integrate the averaged compartmental increments in a fourth order Runge-Kutta scheme (RK4). We use in the random walk simulations and the Monte-Carlo (mean field) integration exactly the same (Gamma distributed) random values (PYTHON seeds) for the
. The values of the infection rate parameters
used in the mean field integration are determined from Equation (
32) by plugging in the large time asymptotic values of the random walk simulation with identical parameters (without mortality). The compartmental fractions in the random walk simulations are determined by simply counting the compartmental populations at each time increment
of walker’s steps. The so determined rate parameters
plugged into the mean field integration depend in a complex manner on the infection probabilities
and topology of the network. In this way this information is also contained in the basic reproduction numbers with and without mortality.
We explore the spreading in random graphs of different complexity such as represented in
Figure 7. The BA graph is small world with power law distributed degree (
Appendix A.3) which means that there are many nodes having a few connections, and a few (hub) nodes with a huge number of connections. The average distance between nodes becomes small, as it is sufficient that almost every node is only a few links away from a hub node. The ER graph is small world due to a broad degree distribution. The WS graph with the choice of connectivity parameter
in
Figure 7 has long average distances and is large world. Intuitively, one infers that a small world structure is favorable for spreading processes, a feature which was already demonstrated in the literature [
9,
10]. In our simulations spreading in network architectures with increased connectivity comes along with increased values of
and
, respectively.
We identify the starting time instant (
) of the evolution in the mean field model with the time instant of the first infection of a walker in the random walk simulations. In all cases we start with a small number of randomly chosen initially infected nodes
(
) and no infected or dead walkers. To reduce the numbers of parameters and to concentrate on topological effects we have put in all simulations the transmission probabilities
. We refer to [
46] for the PYTHON codes
2 and animated simulation videos related to the present study. In order to visualize a typical spreading process, we depict in
Figure 8 a few snapshots in a Watt-Strogatz graph with rather high overall mortality probability of
. In this case a single infection wave emerges where a large part of walkers gets repeatedly infected increasing their probability to die. This leads to a very high fraction of eventually dead walkers
and small fraction
of surviving walkers corresponding to the stationary state (
17) which is taken as soon as the disease gets extinct
.
Figure 8 shows that first the infection gains large parts of the network consistent to the large value of
observed in this case. After the first wave the disease gets extinct by the high mortality of the walkers. A disease with a similar high mortality characteristics is for instance Pestilence. The process of
Figure 8 is visualized in an
animated video.
Figure 9 and
Figure 10 show the evolution in WS graphs with identical parameters and Gamma distributions of
as in
Figure 8 but with different mortality rate parameter
and a much smaller overall mortality
. The different network connectivity leads to different values of
and mean field solutions in
Figure 9 and
Figure 10. In addition, the networks of
Figure 9 and
Figure 10 have different connectivity features. The graph of
Figure 9 is small world (highly connected) whereas the WS graph in
Figure 10 is weakly connected and large world. One observes in
Figure 9 that the infection numbers exhibit strong and immediate increases followed by attenuated oscillations around the endemic equilibrium (for zero mortality) with high values
and
. The basic reproduction numbers with mortality are in both graphs only slightly smaller as
. This is due to a rather small overall mortality of
. This effect can also be seen in the small overlap of the Gamma distributions of
and
in the histogram. Recall that a small value of
does not necessarily mean small
as this quantity depends also on the infection rates and network topology (see (
17)) and is sensitive to repeated infections. repeated infections may indeed play an important role here as
is rather small.
In
Figure 10 the infections of the random walk simulations are increasing slower (red curves) compared to
Figure 9. The structure with higher connectivity
Figure 9 shows excellent quantitative agreement of random walk and mean field solutions for the walkers and nodes capturing well the attenuated oscillations, especially for zero mortality. In the network with smaller connectivity of
Figure 10 the increase of the infections is delayed compared to the mean field. On the other hand, for non-zero mortality the mean field and random walk dynamics for the walkers diverge slightly with time. We infer that mortality may deviate the infection rates from (
1).
The comparison of the spreading in
Figure 9 and
Figure 10 shows clearly the role of the connectivity: The mean field model captures better the spreading in networks with higher connectivity (short average distances between nodes) and with low mortality. The following cases give further evidence for these observations.
Next we explore the spreading on an ER graph in
Figure 11. The agreement of random walk simulations and mean field model is impressive where this holds for both with and without mortality. One can see by the degree distribution in
Figure 7 that for these connectivity parameters the graph is well connected and small world giving strong evidence that the mean field approach is here well capturing the spreading dynamics.
Finally we explore in
Figure 12 the dynamics on a BA network. In the right frame we have high overall mortality of
probability for a walker to die from an infection. In this example the disease is starting to spread as
where only a single infection wave emerges which is extinct by the high mortality. Recall that that
is only telling us that the healthy state is unstable, i.e., that the disease is starting to spread. It does not contain the information whether the spreading is persistent or whether the disease is eventually extinct. To explore the role of topological features such as average distances between nodes we perform the same simulation experiment with identical parameters and less (
) nodes, i.e., higher density of walkers (
Figure 13).
The accordance of mean field model and random walk simulation is also in
Figure 13 indeed excellent. We explain this by the fact that the BA network is a strongly connected structure with pronounced small world property. The higher density of walkers lead to increased
and
compared to
Figure 12. There is also only a single infection wave occurring with a higher maximum value compared to
Figure 12. In both cases (
Figure 12 and
Figure 13, right frames) the infection waves are extinct by the high mortality of walkers where stationary states (
17) with
of dead walkers are taken. When we switch off mortality (left frames), stable endemic states emerge more rapidly in
Figure 13 (case with higher density of walkers).
Further simulation experiments (not shown here) reveal that the mean field model and random walk simulations exhibit excellent accordance when we further increase the attachment parameters m or the density of walkers with otherwise identical parameters. For higher mortality the agreement becomes less well and diverges with increasing observation time. This observation suggests that mortality modifies the infection rates in the network for larger observation times. We leave this issue for future research.
Our overall finding from this case study is that the mean field approach (with infection rates (
1)) is particularly well suited to mimic spreading in strongly connected environments with pronounced small world feature, but is less well for higher mortality.