Email Record: Simulating SIR processes on networks using weighted shortest paths