springer-math / Mathematics-of-Epidemics-on-Networks

Source code accompanying 'Mathematics of Epidemics on Networks' by Kiss, Miller, and Simon http://www.springer.com/us/book/9783319508047 . Documentation for the software package is at https://epidemicsonnetworks.readthedocs.io/en/latest/
MIT License
150 stars 61 forks source link

Simple Contagion flow diagrams #100

Open joelmiller opened 2 months ago

joelmiller commented 2 months ago

Generate code that takes in the two graphs for simple_contagion and produce a flow diagram of individual states showing all possible transitions with edges labeled by rates (including both types of transitions). Will need to take pos as an optional input.

Key challenges - what to do if there is more than one transition mechanism for a given path? Should we do multiple edges? Single edge with sum of rates?