In
topology
In mathematics, topology (from the Greek words , and ) is concerned with the properties of a geometric object that are preserved under continuous deformations, such as stretching, twisting, crumpling, and bending; that is, without closing ho ...
and related branches of
mathematics, a connected space is a
topological space
In mathematics, a topological space is, roughly speaking, a geometrical space in which closeness is defined but cannot necessarily be measured by a numeric distance. More specifically, a topological space is a set whose elements are called po ...
that cannot be represented as the
union of two or more
disjoint non-empty open subsets. Connectedness is one of the principal
topological properties
In topology and related areas of mathematics, a topological property or topological invariant is a property of a topological space that is invariant under homeomorphisms. Alternatively, a topological property is a proper class of topological spa ...
that are used to distinguish topological spaces.
A subset of a topological space
is a if it is a connected space when viewed as a
subspace of
.
Some related but stronger conditions are
path connected,
simply connected, and
-connected. Another related notion is ''
locally connected'', which neither implies nor follows from connectedness.
Formal definition
A
topological space
In mathematics, a topological space is, roughly speaking, a geometrical space in which closeness is defined but cannot necessarily be measured by a numeric distance. More specifically, a topological space is a set whose elements are called po ...
is said to be if it is the union of two disjoint non-empty open sets. Otherwise,
is said to be connected. A
subset
In mathematics, set ''A'' is a subset of a set ''B'' if all elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are unequal, then ''A'' is a proper subset o ...
of a topological space is said to be connected if it is connected under its subspace topology. Some authors exclude the
empty set (with its unique topology) as a connected space, but this article does not follow that practice.
For a topological space
the following conditions are equivalent:
#
is connected, that is, it cannot be divided into two disjoint non-empty open sets.
#The only subsets of
which are both open and closed (
clopen sets) are
and the empty set.
#The only subsets of
with empty
boundary are
and the empty set.
#
cannot be written as the union of two non-empty
separated sets (sets for which each is disjoint from the other's closure).
#All
continuous functions from
to
are constant, where
is the two-point space endowed with the discrete topology.
Historically this modern formulation of the notion of connectedness (in terms of no partition of
into two separated sets) first appeared (independently) with N.J. Lennes,
Frigyes Riesz, and
Felix Hausdorff at the beginning of the 20th century. See for details.
Connected components
Given some point
in a topological space
the union of any collection of connected subsets such that each contains
will once again be a connected subset.
The connected component of a point
in
is the union of all connected subsets of
that contain
it is the unique largest (with respect to
) connected subset of
that contains
The
maximal connected subsets (ordered by
inclusion ) of a non-empty topological space are called the connected components of the space.
The components of any topological space
form a
partition of
: they are
disjoint, non-empty and their union is the whole space.
Every component is a
closed subset of the original space. It follows that, in the case where their number is finite, each component is also an open subset. However, if their number is infinite, this might not be the case; for instance, the connected components of the set of the
rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (e.g. ). The set of all ra ...
s are the one-point sets (
singletons), which are not open. Proof: Any two distinct rational numbers