Loop to update the distance of the vertices of the graph
for a in sett : NEW_LINE INDENT if ( dist [ a ] < minDist ) : NEW_LINE INDENT minDist = dist [ a ] ; NEW_LINE index = a ; NEW_LINE DEDENT DEDENT current = index ; NEW_LINE return dist ; NEW_LINE