Skip to content

Create your own animated network visualization by exploiting a diffusion model!

Notifications You must be signed in to change notification settings

andreafailla/Diff2GIF-Animated-Diffusion-Models

Repository files navigation

Diff2GIF – Animated Diffusion Models

Streamlit App Python 3.9 License: BSD 3-Clause

Create your own animated network visualization by exploiting a diffusion model!

SIR Epidemics model GIF

What is this?

Diff2GIF is a web app that allows you to create animated network visualizations by selecting among several graph topologies and diffusion models. The app is based on NetworkX, NDlib and is built with Streamlit.

APP Screenshot

How do I use it?

You can use the app by clicking on the Streamlit badge above. Alternatively, you can run the app locally by cloning this repository and running the following commands:

pip install -r requirements.txt
streamlit run app.py

To create your own GIF, follow these steps:

  1. Select a graph topology (e.g., Erdos-Renyi, Barabasi-Albert, etc.)
  2. Select an Epidemic/Opinion diffusion model (e.g., SIR, Deffuant, etc.)
  3. Select the number of iterations (i.e., the number of frames of the GIF)
  4. Select the duration of the GIF's frames
  5. Click on the "Generate GIF" button and wait for the GIF to be generated
  6. Download and enjoy your GIF!

And remember: it's JIF, not GIF!

About

Create your own animated network visualization by exploiting a diffusion model!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages