Let G1 (V, E) be a connected undirected graph and G2 (V1, E') be the subgraph of G1. Weights are assigned to the edges of G1.
W(e) = 0; if e belongs to E'
= 1 , otherwise.
Single source shortest path algorithms is applied on G1 and minimum path cost is computed between all pair of vertices and stored in a matrix.
What will be additional time complexity (strict upper bound) to determine if G2 is connected or not.