fix Graph.java and it works now