static void web_collapseBackwards(Web web, S relationType) { for (Pair p : web_relationsOfType(web, relationType)) web_collapseNodeTo(p.b, p.a); }