added uniform graph code, for SIR model