graph1 and graph2 as test data