Component structure induced by a random walk on a random graph