change graph.class to Graph.class