fixed the crash in watts-strogratz network. epidemic model is now fully operational.