powered by
Generic function to mark specific pairs as forbidden.
mark_forbidden_pairs(cost_matrix, forbidden_indices)
Modified cost matrix with forbidden pairs marked.