Update key value and parent index of the adjacent vertices of the picked vertex . Consider only those vertices which are not yet included in MST logGraph [ u , v ] is non zero only for
for ( int v = 0 ; v < V ; v ++ )