public HashMap<Node, HashMap<Node, Float>> getAPSDistances() {
   return allPairsShortestPath.getDistances();
 }