Looks like Dijkstra's algorithm.
However it is completely different to my pf.


Follow me on twitter