An algorithm to compute the full set of many-to-many stable matchings