TwisterModel mrDriver = new TwisterDriver(jobConf);
mrDriver.configureMaps();
int loopCount = 0;
TwisterMonitor monitor = null;
for (loopCount = 0;; loopCount++) {
monitor = mrDriver.runMapReduce(getKeyValuesForMap(numberOfMapTasks));
monitor.monitorTillCompletion();
Hashtable<Integer, Node> newGraph = ((AllPairsShortestPathCombiner) mrDriver
.getCurrentCombiner()).getResults();
System.out.println(" Loop Count: " + loopCount);