I\'m working on a university project, using map hashes to do the Prim\'s algorithm on a graph. Everything works fine and now on the previous map hash I have the previous of