A linear solution for this problem is possible under the assumptions that the graph is directed and acyclic. The directed nature of the graph in this particular example is very clear, and because an individual doesn’t forward a message more than once, there are “basically” no cycles.
Had to Google what a Hamiltonian graph was though. I’ve been listening to the musical too much.