This algorithm is used to find the shortest path from a source node to all the other nodes in the graph. This is a C++ implementation of the algorithm