https://1library.net/document/q2me3kry-shortest-path-algorithm-using-hashing-and-queue.html