The algorithm computes from one source vertex the whole thing.
What if no edges come out from the vertex i assume as source? how do you do it?
In any test set, If i assume vertex-1 as source, no edges come out from vertex 1, but only comes in... i think it wont work asking for solutions..