fixed non-initialization of path entries in graph.java