A subset of a topological space is a connected subset when , with the subspace topology inherited from , is a connected space. Thus connectedness is tested inside : a forbidden separation of a topological space consists of nonempty subsetswhere are open sets in . The ambient open sets need not be disjoint outside .
For example, in the real line with its usual topology, is a connected subset, whereas is not: its two singleton sets are open in its subspace topology. A subset of a connected space need not be connected. Conversely, is a connected subset of the disconnected topological space . The ambient topological space need not itself be connected.
A finite set of distinct points in the real line inherits the discrete topology: a sufficiently small open interval around each point isolates that point. Its only nonempty connected subsets are singleton sets. This depends on the topology: a nonempty finite set with the indiscrete topology is a connected space, since its only open sets are itself and the empty set. Here, as in the definition of connected space, the empty set is also connected because it admits no separation of a topological space.[ref]
Chapter 3: Connected and compact spaces. Definition 3.1.1 and Example 3.1.3: connectedness and discrete spaces
The distinction matters when finding connected components: we search among connected subsets of the specified topological space, rather than judging whether the surrounding drawing looks like one piece.
New to topics? Read the docs here!