Calculating the minimum of MinWeight of v to its 2 ^ i - th ancestor and MinWeight of u to its 2 ^ i - th ancestor
minWei = Math . Min ( minWei , Math . Min ( minWeight [ v , i ] , minWeight [ u , i ] ) ) ;