sharder.shard(new FileInputStream(new File(baseFilename)), fileType);
}
/* Run engine */
GraphChiEngine<Integer, Integer> engine = new GraphChiEngine<Integer, Integer>(baseFilename, nShards);
engine.setEdataConverter(new IntConverter());
engine.setVertexDataConverter(new IntConverter());
engine.setModifiesInedges(false); // Important optimization
engine.run(new SmokeTest(), 5);
/* Test vertex iterator */
Iterator<VertexIdValue<Integer>> iter = VertexAggregator.vertexIterator(engine.numVertices(),
baseFilename, new IntConverter(), engine.getVertexIdTranslate());
int i=0;
while(iter.hasNext()) {
VertexIdValue<Integer> x = iter.next();
int internalId = engine.getVertexIdTranslate().forward(x.getVertexId());