function part2(input) {
const { nodes, g } = parse(input);
const tris = nodes.map((n) => triangles(n, g));
const maxSize = d3.max(tris, (d) => d.length);
const notMaxClique = new Set(tris.filter((d) => d.length < maxSize).flat(2));
return [...AOC.difference(new Set(nodes), notMaxClique)].sort().join(",");
}