Update GraphTools.java