Skip to content

Add Disease on Network model#371

Open
FedericoCelauro wants to merge 8 commits intomesa:mainfrom
FedericoCelauro:add-illness-model
Open

Add Disease on Network model#371
FedericoCelauro wants to merge 8 commits intomesa:mainfrom
FedericoCelauro:add-illness-model

Conversation

@FedericoCelauro
Copy link

Summary

This PR adds a new example model titled "Disease on Network". It simulates the spread of an infectious disease through a social network.

Motive

The main characteristic of this model implementation is the dynamic link status between each PersonAgent. The simulation shows how self isolation policies can reduce the impact of spreading diseases.

Implementation

The model is defined on a Erdős–Rényi random graph, where each agent on a node can interact with a certain subset of the graph. Each agent, depending on the advancement of the disease, can close its link with its nerighbors, reducing the risk of transmission.

Usage Examples

To run the example usage do

    $ cd examples/disease_on_network
    $ python run_example.py

To run the interactive Solara simulation please do

    $ cd examples/disease_on_network
    $ solara run app.py

Additional Notes

This model is very simple yet capable of showing the results of real world policies. There are many ways to improve it, from multiple self isolation policies to multiple social network possibilities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant