public void pathInfo() {
      if (path == null || toNode == null || fromNode == null)
        return;
      double length = 0;
      for (Edge e : path) {
        length += e.length;
      }
      System.out.println("Direct path distance: "+Node.getDistance(fromNode, toNode));
      System.out.println("Distance on MST: " +length+"\n");
    }