Implemented == and != of Edge.