Introduction - If you have any usage issues, please Google them yourself
This a question about the shortest path algorithm, although the problem is simple, but the idea which is worth learning and learning, which uses the width of the search priority queue and map