Adding code to test for GRAPH.