Generalization in LLM Problem Solving: The Case of the Shortest Path — ThinkLLM