public static boolean areEqual(final Edge a, final Edge b) {
        return null != b && null != a && (a == b || haveEqualIds(a, b));
    }
A standard method for determining if two {@link Element} objects are equal. This method should be used by any
{@link Object#equals(Object)} implementation to ensure consistent behavior. This method is used for Vertex,
Edge, and VertexProperty.

@param a The first {@link Element}
@param b The second {@link Element} (as an {@link Object})
@return true if elements and equal and false otherwise
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/ElementHelper.java