Update GraphM.cpp