Made classes/interfaces public, generic type of Edge no extends Comparable.