Changed graphs to static variables - improve efficiency