update edge.java; package graph