graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientEdge.java
@Override
  public OrientVertex getVertex(final Direction direction) {
    final OrientBaseGraph graph = setCurrentGraphInThreadLocal();

    if (direction.equals(Direction.OUT))
      return graph.getVertex(getOutVertex());
    else if (direction.equals(Direction.IN))
      return graph.getVertex(getInVertex());
    else
      throw ExceptionFactory.bothIsNotSupported();
  }
@Override
  public OrientVertex getVertex(final Direction direction) {
    final OrientBaseGraph graph = setCurrentGraphInThreadLocal();

    if (direction.equals(Direction.OUT))
      return graph.getVertex(getOutVertex());
    else if (direction.equals(Direction.IN))
      return graph.getVertex(getInVertex());
    else
      throw ExceptionFactory.bothIsNotSupported();
  }
Returns the connected incoming or outgoing vertex.

@param direction Direction between IN or OUT