Feb. 21, 2014, 4:23 p.m. by Rosalind Team
Topics: Graphs
The task is to use breadth-first search to compute single-source shortest distances in an unweighted directed graph.
Given: A simple directed graph with
Return: An array
See Figure 1 for visual example from the sample dataset.
6 6 4 6 6 5 4 3 3 5 2 1 1 4
0 -1 2 1 3 2