Animated social contagion graph

I have to simulate a social contagion on a small network (more specifically I need to implement a networked coordination game), and it would be really nice if I could create an animation: the starting frame should be the network with the first "infected" nodes, then it starts to show which other nodes are infected (step by step). I know that is possible to create animation with matplotlib but I'm not sure how they work (I always used that library to create simple images). Last piece of information: I'm using networkx to create (work on) the network.

Python 19-08-19, 9:24 p.m. terry131

Hello terry131,

This questions seems to have been resolved here: https://stackoverflow.com/questions/43646550/how-to-use-an-update-function-to-animate-a-networkx-graph-in-matplotlib-2-0-0?rq=1

Kindly have a look.

20-08-19, 11:23 a.m. ankitrj.iitb
Thanks for all the links provided, it is most helpful!

03-09-19, 8:13 a.m. nicoleball

Login to add comment


Spread on social networks yo whatsapp will be known by many people like on yo whatsapp iphone

15-09-21, 7 p.m. ElaineYoung


Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. Fm Whatsapp
19-10-21, 5:14 p.m. wick09788

Log-in to answer to this question.