Solution

ID: past-exam-of-the-graph-theory-and-probabilistic-combinatorics-course-of-the-university-of-oxford/2011/a/2/b/ii/solution

For each vertex , let be the maximum number of vertices in a directed path ending at . These numbers lie between one and .
If is an edge, a longest graph path ending at cannot already contain , since that would give a directed cycle on appending . Appending it therefore creates a graph path ending at , so . Adjacent vertices consequently receive different colours. Hence
Acyclicity is exactly what justifies extending the graph path without repeating a vertex.

New to topics? Read the docs here!