Given a graph and a source vertex in the graph, find shortest paths from source to all vertices in the given graph.