You can adjust how you want to review the results on the left side of the result pane. Currently you're viewing the graph result view. You can view the Table result view below and you should see, per row, your
input node followed by a list of the nodes in the path for that row.
As far as the "last" node, that depends upon what defines a last node.
Is it that there should be no other relationships aside from the one you traversed to get to the node? In that case you should add
WHERE size((m)--()) = 1.
Is it the node at furthest distance from
n? In that case order the paths by length descending and limit:
WITH input, path
ORDER BY length(path) DESC
RETURN input, nodes(path)
If there's some other criteria then you'll have to figure out how to include that in your query.