NodePool nodePool = nodePoolFactory.createNewNodePool();
Localizer localizer = new LocalizerImpl(nodePool, STRING_MAPPER);
MoleculeLocalizer moleculeLocalizer = new MoleculeLocalizerImpl(localizer);
LongIndex[] longIndexes = new LongIndex[]{new LongIndexAdapter(structureIndexes[0]),
new LongIndexAdapter(structureIndexes[1]), new LongIndexAdapter(structureIndexes[2])};
collectionFactory = new BdbCollectionFactory(BDB_HANDLER, "collection" + graphNumber);
Graph graph = new OrderedGraphFactoryImpl(longIndexes, nodePool, collectionFactory).getGraph();
graph.clear();
openMapFactories.add(factory);
openFactories.add(nodePoolFactory);
return new MoleculeGraphImpl(writeIndex, readIndex, moleculeLocalizer, graph, nodePool);