graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientEdge.java
private static void removeLightweightConnection(final ODocument iVertex, final String iFieldName,
      final OIdentifiable iVertexToRemove) {
    if (iVertex == null || iVertexToRemove == null)
      return;

    final Object fieldValue = iVertex.field(iFieldName);
    if (fieldValue instanceof OIdentifiable) {
      if (fieldValue.equals(iVertexToRemove)) {
        iVertex.removeField(iFieldName);
      }
    } else if (fieldValue instanceof ORidBag) {
      ((ORidBag) fieldValue).remove(iVertexToRemove);
    }
  }
private static void removeLightweightConnection(final ODocument iVertex, final String iFieldName,
      final OIdentifiable iVertexToRemove) {
    if (iVertex == null || iVertexToRemove == null)
      return;

    final Object fieldValue = iVertex.field(iFieldName);
    if (fieldValue instanceof OIdentifiable) {
      if (fieldValue.equals(iVertexToRemove)) {
        iVertex.removeField(iFieldName);
      }
    } else if (fieldValue instanceof ORidBag) {
      ((ORidBag) fieldValue).remove(iVertexToRemove);
    }
  }
private static void removeLightweightConnection ( final ODocument iVertex , final String iFieldName , final OIdentifiable iVertexToRemove ) { if ( iVertex == null || iVertexToRemove == null ) return ; final Object fieldValue = iVertex . field ( iFieldName ) ; if ( fieldValue instanceof OIdentifiable ) { if ( fieldValue . equals ( iVertexToRemove ) ) { iVertex . removeField ( iFieldName ) ; } } else if ( fieldValue instanceof ORidBag ) { ( ( ORidBag ) fieldValue ) . remove ( iVertexToRemove ) ; } }
(Blueprints Extension) This method does not remove connection from opposite side.

@param iVertex         vertex that holds connection
@param iFieldName      name of field that holds connection
@param iVertexToRemove target of connection
( Blueprints Extension ) This method does not remove connection from opposite side .