}
externalVertexRetriever = new VertexConstructor(config.hasVerifyExternalVertexExistence());
internalVertexRetriever = new VertexConstructor(config.hasVerifyInternalVertexExistence());
vertexCache = new GuavaVertexCache(config.getVertexCacheSize(),concurrencyLevel);
indexCache = CacheBuilder.newBuilder().weigher(new Weigher<IndexQuery, List<Object>>() {
@Override
public int weigh(IndexQuery q, List<Object> r) {
return 2 + r.size();
}