BFS - Single Source Shortest Path

why there is a need of parent in code
in printing we have not used parent map.
furthur in line 64 parent[neighbour] = node what does this mean ?

Hey Harshal, can you please the code’s link also which you are talking about.