Edges of the subgraph G1 have weight 0, while all other edges have weight 1. Therefore, a shortest-path cost of 0 from the source v1 to a vertex in V1 is possible exactly when that vertex can be reached using only edges of E1. If every vertex in V1 gets distance 0, then G1 is connected; if some vertex in V1 gets positive or infinite distance, then G1 is disconnected.
The edge weights are 0 exactly on the subgraph G1. Therefore the computed shortest-path distances from v1 reveal whether every vertex of V1 is reachable from v1 using only zero-weight edges, which is equivalent to G1 being connected. Nothing about edge counts, cliques, or tree structure follows from the distance values.