static L clusters_merge(Map> clusters, L a, L b) { for (S x : b) { a.add(x); clusters.put(x, a); } }