public Direction opposite() {
        if (this.equals(OUT))
            return IN;
        else if (this.equals(IN))
            return OUT;
        else
            return BOTH;
    }
Produce the opposite representation of the current {@code Direction} enum.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/Direction.java