Modify and documented PageGraph.java