public static boolean haveEqualIds(final Element a, final Element b) {
        return a.id().equals(b.id());
    }
Simply tests if the value returned from {@link Element#id()} are {@code equal()}.

@param a the first {@link Element}
@param b the second {@link Element}
@return true if ids are equal and false otherwise
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/util/ElementHelper.java