Fetching details from the dictionary...

to follow (a road, path, etc.); to trace
to follow (a clue, scent, tracks, plot, etc.); to trace (a route, history, family tree, etc.); to retrace (e.g. one's memory); to search; to go over
to head towards (of a situation); to go in the direction of; to take (a course); to pursue (a path); to meet (a fate)
記憶を辿りながら川沿いの懐かしい道を歩いた。
I walked following the path along the river.
記憶を辿って昔のことを思い出した。
I traced my memories and recalled the past.
道に迷い元来た道を辿った。
I got lost and retraced the path I had come from.