graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientEdge.java
@Override
  public void remove() {
    final OrientBaseGraph graph = getGraph();
    if (!isLightweight())
      checkClass();

    graph.setCurrentGraphInThreadLocal();
    graph.autoStartTransaction();

    for (final Index<? extends Element> index : graph.getIndices()) {
      if (Edge.class.isAssignableFrom(index.getIndexClass())) {
        OrientIndex<OrientEdge> idx = (OrientIndex<OrientEdge>) index;
        idx.removeElement(this);
      }
    }

    if (graph != null)
      graph.removeEdgeInternal(this);
    else
      // IN MEMORY CHANGES ONLY: USE NOTX CLASS
      OrientGraphNoTx.removeEdgeInternal(null, this);
  }
@Override
  public void remove() {
    final OrientBaseGraph graph = getGraph();
    if (!isLightweight())
      checkClass();

    graph.setCurrentGraphInThreadLocal();
    graph.autoStartTransaction();

    for (final Index<? extends Element> index : graph.getIndices()) {
      if (Edge.class.isAssignableFrom(index.getIndexClass())) {
        OrientIndex<OrientEdge> idx = (OrientIndex<OrientEdge>) index;
        idx.removeElement(this);
      }
    }

    if (graph != null)
      graph.removeEdgeInternal(this);
    else
      // IN MEMORY CHANGES ONLY: USE NOTX CLASS
      OrientGraphNoTx.removeEdgeInternal(null, this);
  }
@ Override public void remove ( ) { final OrientBaseGraph graph = getGraph ( ) ; if ( ! isLightweight ( ) ) checkClass ( ) ; graph . setCurrentGraphInThreadLocal ( ) ; graph . autoStartTransaction ( ) ; for ( final Index < ? extends Element > index : graph . getIndices ( ) ) { if ( Edge . class . isAssignableFrom ( index . getIndexClass ( ) ) ) { OrientIndex < OrientEdge > idx = ( OrientIndex < OrientEdge > ) index ; idx . removeElement ( this ) ; } } if ( graph != null ) graph . removeEdgeInternal ( this ) ; else // IN MEMORY CHANGES ONLY: USE NOTX CLASS OrientGraphNoTx . removeEdgeInternal ( null , this ) ; }
Removes the Edge from the Graph. Connected vertices aren't removed.
Removes the Edge from the Graph . Connected vertices aren t removed .