add dump method in Graph.java