graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientElement.java
public OrientBaseGraph getGraph() {
    if (classicDetachMode)
      return graph;

    OrientBaseGraph result = OrientBaseGraph.getActiveGraph();
    if (result == null && this.graph != null && !graph.isClosed()) {
      result = graph;
    }
    return result;
  }
public OrientBaseGraph getGraph() {
    if (classicDetachMode)
      return graph;

    OrientBaseGraph result = OrientBaseGraph.getActiveGraph();
    if (result == null && this.graph != null && !graph.isClosed()) {
      result = graph;
    }
    return result;
  }
public OrientBaseGraph getGraph ( ) { if ( classicDetachMode ) return graph ; OrientBaseGraph result = OrientBaseGraph . getActiveGraph ( ) ; if ( result == null && this . graph != null && ! graph . isClosed ( ) ) { result = graph ; } return result ; }
(Blueprints Extension) Returns the Graph instance associated to the current element. On @detach ed elements returns NULL.
( Blueprints Extension ) Returns the Graph instance associated to the current element . On