Implementing an SIR Model on Various Network Topologies