Try to replicate recursion
Parse dijkstra data