Create graph_check.cpp