Seol mar théacs é seo: Constrained clustering: general pairwise and cardinality constraints