With reference to this link that i read: Union of connected subsets is connected if intersection is nonempty
My question is: if union of connected subsets are connected in a metric space and their intersection is empty. Then what if the union is the metric space $X$ itself?
Namely: Let $X$ be a metric space, $X = \cup_{n=1}^{\infty}X_n$ where each $X_n$ is non empty connected and each $X_i$ and $X_j$ are not disjoint, show that $X$ is connected.
Can i use the same proof and idea as provided in the link? I have trouble mimicking when the collection of the connected subsets span the whole metric space instead of just being a subspace of $X$.