powered by
Count valid pairs in cost matrix
count_valid_pairs(cost_matrix)
Integer count of valid (non-forbidden) pairs.