Program in C++  that calculates the minimum maximum distance of the set of vertices of that graph