Given an image of an undirected graph (has edges of weight 0 and 1), print a list of the shortest distances from vertex 0 to all others.
Input
An image of an undirected graph with edges 0 and 1 is given.
Output
In your answer, output a list of shortest paths from vertex 0.