Consider next vertex if it is not same ( diagonal entry in adjacency matrix and not visited already )
if ( adj [ curr_path [ level - 1 ] ] [ i ] != 0 and visited [ i ] == False ) : NEW_LINE INDENT temp = curr_bound NEW_LINE curr_weight += adj [ curr_path [ level - 1 ] ] [ i ] NEW_LINE DEDENT