Problem 2493 · Hard

Divide Nodes Into the Maximum Number of Groups

Each connected piece needs a bipartite layering; the best start node in a piece gives its most groups, and the pieces add up.

Open the interactive visualisation