Update graph_check.cpp