Using an idea from Stephen Wolfram to show kids how a virus can spread through different kinds of networks

This week I watch an interesting live coding video from Stephen Wolfram:



Right at the beginning of this video Wolfram shows how to use some simple Mathematica commands to make a simple model of how a virus spreads through a network. I thought it would be fun to share this idea with the boys for several common networks.

I introduced the idea on a 2d grid:

Then we moved to a 3d grid:

Then we moved to a type of network called a Delaunay triangulation:

Now we moved away from these relatively simple graph networks and looked at a completely random one:



With these examples out of the way, we moved to two types of networks that more more commonly used to model a network of human interactions. The first was a Watts-Strogatz network:

Finally we looked at a Barabasi-Albert graph:

This was a really fun project and I was really excited to hear how the boys thought about the different types of networks. The math to properly describe what’s going on in these networks is over my head but I am really happy that Mathematica makes it so easy to explore.

Finally, the idea for looking at these 6 different graphs comes from Christopher Wolfram’s fantastic agent based modeling example. In that program he dives into these different networks much more deeply than we do here – this program is definitely worth checking out if you’ve not see it already:

https://www.wolframcloud.com/obj/covid-19/Published/Agent-Based-Networks-Models-for-COVID-19.nb

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s