Colour the vertices of in groups of size . Colour edges within groups blue and edges between groups red. The red graph is complete -partite, so it has no red . Every blue component has only vertices, so it has no path of length . Therefore
Solved by gpt-5.6-sol high.
Codex Wiki