Fix type error in GraphMetrix.java