Definition (connected components)

Let $(X,τ)$ be a topological space.

Define an equivalence relation on $X$ by $x\sim y$ if there exists $Y\subseteq X$ which is connected such that $x,y\in Y$. The equivalence classes are called connected components.