public Graph getNewGraph() {
LongIndex[] indexes = createIndexes();
NodePoolFactory nodePoolFactory = new MemNodePoolFactory();
IteratorTrackingCollectionFactory collectionFactory = new MemCollectionFactory();
return new GraphFactoryImpl(indexes, nodePoolFactory, collectionFactory).getGraph();
}