Corrected getting vertex with highest centrality and least diameter.