Fixed equals & hashCode implementation in Edge.