finished calculating the MST heuristic value for the graph