Пример #1
0
 @Override
 public boolean containsVertex(final long vertexid) {
   verifyOpen();
   if (vertexCache.contains(vertexid)) {
     if (!vertexCache.get(vertexid, vertexConstructor).isRemoved()) return true;
     else return false;
   } else if (vertexid > 0 && graph.containsVertexID(vertexid, txHandle)) return true;
   else return false;
 }
Пример #2
0
 public InternalVertex getExistingVertex(final long id) {
   // return vertex no matter what, even if deleted
   InternalVertex vertex = vertexCache.get(id, vertexConstructor);
   return vertex;
 }