Rule-based epidemic models. (7th December 2021)