Single source paths in a graph