public AllPairsShortestPath(File file) throws Exception {
   this.file = file;
   readInput();
 }