integrate dependencies into new Graph.java