• The closed interval [0, 2) in the
standard subspace topology is connected; although it can, for example, be written as the union of [0, 1) and [1, 2), the second set is not open in the chosen topology of [0, 2). • The union of [0, 1) and (1, 2] is disconnected; both of these intervals are open in the standard topological space [0, 1) \cup (1, 2]. • (0, 1) \cup \{ 3 \} is disconnected. • The space X=\{a,b\} with the indiscrete topology is connected, since its only open sets are \varnothing and X. • The subspace Y=[-1,0)\cup(0,1]\subset\mathbb{R} is not connected. Indeed, the sets [-1,0) and (0,1] are nonempty, disjoint, and open in the subspace topology on Y, and together form a separation of Y. • A
convex subset of \R^n is connected; it is actually
simply connected. • A
Euclidean plane excluding the origin, (0, 0), is connected, but is not simply connected. The three-dimensional Euclidean space without the origin is connected, and even simply connected. In contrast, the one-dimensional Euclidean space without the origin is not connected. • A Euclidean plane with a straight line removed is not connected since it consists of two half-planes. • \R, the space of
real numbers with the usual topology, is connected. • The
Sorgenfrey line is disconnected. • If even a single point is removed from \mathbb{R}, the remainder is disconnected. However, if even a countable infinity of points are removed from \R^n, where n \geq 2, the remainder is connected. If n\geq 3, then \R^n remains simply connected after removal of countably many points. • Any
topological vector space, e.g. any
Hilbert space or
Banach space, over a connected field (such as \R or \Complex), is simply connected. • Every
discrete topological space with at least two elements is disconnected, in fact such a space is
totally disconnected. The simplest example is the
discrete two-point space. • On the other hand, a finite set might be connected. For example, the
spectrum of a
discrete valuation ring consists of two points and is connected. It is an example of a
Sierpiński space. • The
Cantor set is totally disconnected; since the set contains uncountably many points, it has uncountably many components. • If a space X is
homotopy equivalent to a connected space, then X is itself connected. • The
topologist's sine curve is an example of a set that is connected but is neither path connected nor locally connected. • The
general linear group \operatorname{GL}(n, \R) (that is, the group of n-by-n real, invertible matrices) consists of two connected components: the one with matrices of positive determinant and the other of negative determinant. In particular, it is not connected. In contrast, \operatorname{GL}(n, \Complex) is connected. More generally, the set of invertible bounded operators on a complex Hilbert space is connected. • The spectra of commutative
local ring and integral domains are connected. More generally, the following are equivalent • The spectrum of a commutative ring R is connected • Every
finitely generated projective module over R has constant rank. • R has no
idempotent \ne 0, 1 (i.e., R is not a product of two rings in a nontrivial way). An example of a space that is not connected is a plane with an infinite line deleted from it. Other examples of disconnected spaces (that is, spaces which are not connected) include the plane with an
annulus removed, as well as the union of two disjoint closed
disks, where all examples of this paragraph bear the
subspace topology induced by two-dimensional Euclidean space. == Path connectedness == A is a stronger notion of connectedness, requiring the structure of a path. A
path from a point x to a point y in a
topological space X is a continuous function f from the
unit interval [0,1] to X with f(0)=x and f(1)=y. A of X is an
equivalence class of X under the
equivalence relation which makes x equivalent to y if and only if there is a path from x to y. The space X is said to be path-connected (or pathwise connected or \mathbf{0}-connected) if there is exactly one path-component. Equivalently, a path-component of X is a maximal path-connected subset of X (to see the equivalence, note a path-component in the previous sense is path-connected). Every path-connected space is connected. The converse is not always true: examples of connected spaces that are not path-connected include the extended
long line L^* and the
topologist's sine curve. Subsets of the
real line \R are connected
if and only if they are path-connected; these subsets are the
intervals and rays of \R. Also, open subsets of \R^n or \C^n are connected if and only if they are path-connected. Additionally, connectedness and path-connectedness are the same for
finite topological spaces. == Arc connectedness == A space X is said to be arc-connected or arcwise connected if any two
topologically distinguishable points can be joined by an
arc, which is an
embedding f : [0, 1] \to X. An arc-component of X is a maximal arc-connected subset of X; or equivalently an equivalence class of the equivalence relation of whether two points can be joined by an arc or by a path whose points are topologically indistinguishable. Every
Hausdorff space that is path-connected is also arc-connected; more generally this is true for a
\Delta-Hausdorff space, which is a space where each image of a
path is closed. An example of a space which is path-connected but not arc-connected is given by the
line with two origins; its two copies of 0 can be connected by a path but not by an arc. Intuition for path-connected spaces does not readily transfer to arc-connected spaces. Let X be the
line with two origins. The following are facts whose analogues hold for path-connected spaces, but do not hold for arc-connected spaces: • Continuous image of arc-connected space may not be arc-connected: for example, a quotient map from an arc-connected space to its quotient with countably many (at least 2) topologically distinguishable points cannot be arc-connected due to too small cardinality. • Arc-components may not be disjoint. For example, X has two overlapping arc-components. • Arc-connected product space may not be a product of arc-connected spaces. For example, X \times \mathbb{R} is arc-connected, but X is not. • Arc-components of a product space may not be products of arc-components of the marginal spaces. For example, X \times \mathbb{R} has a single arc-component, but X has two arc-components. • If arc-connected subsets have a non-empty intersection, then their union may not be arc-connected. For example, the arc-components of X intersect, but their union is not arc-connected. == Local connectedness == A topological space is said to be
locally connected at a point x if every neighbourhood of x contains a connected open neighbourhood. It is locally connected if it has a
base of connected sets. It can be shown that a space X is locally connected if and only if every component of every open set of X is open. Similarly, a topological space is said to be if it has a base of path-connected sets. An open subset of a locally path-connected space is connected if and only if it is path-connected. This generalizes the earlier statement about \R^n and \C^n, each of which is locally path-connected. More generally, any
topological manifold is locally path-connected. Locally connected does not imply connected, nor does locally path-connected imply path connected. A simple example of a locally connected (and locally path-connected) space that is not connected (or path-connected) is the union of two
separated intervals in \R, such as (0,1) \cup (2,3). A classic example of a connected space that is not locally connected is the so-called
topologist's sine curve, defined as T = \{(0,0)\} \cup \left\{ \left(x, \sin\left(\tfrac{1}{x}\right)\right) : x \in (0, 1] \right\}, with the
Euclidean topology induced by inclusion in \R^2. == Set operations ==