Connected and disconnected subspaces of R²
From top to bottom: red space
A, pink space
B, yellow space
C and orange space
D are all
connected, whereas green space
E (made of
subsets E1, E2, E3, and E4) is
not connected. Furthermore,
A and
B are also
simply connected (
genus 0), while
C and
D are not:
C has genus 1 and
D has genus 4.
In topology and related branches of mathematics, a connected space is a topological space that cannot be represented as the union of two or more disjoint nonempty open subsets. Connectedness is one of the principal topological properties that is used to distinguish topological spaces. A stronger notion is that of a pathconnected space, which is a space where any two points can be joined by a path.
A subset of a topological space X is a connected set if it is a connected space when viewed as a subspace of X.
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 twodimensional Euclidean space.
Contents

Formal definition 1

Connected components 1.1

Disconnected spaces 1.2

Examples 2

Path connectedness 3

Arc connectedness 4

Local connectedness 5

Set operations 6

Theorems 7

Graphs 8

Stronger forms of connectedness 9

See also 10

References 11

Notes 11.1

General references 11.2
Formal definition
A topological space X is said to be disconnected if it is the union of two disjoint nonempty open sets. Otherwise, X is said to be connected. A subset 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 X the following conditions are equivalent:

X is connected.

X cannot be divided into two disjoint nonempty closed sets.

The only subsets of X which are both open and closed (clopen sets) are X and the empty set.

The only subsets of X with empty boundary are X and the empty set.

X cannot be written as the union of two nonempty separated sets (sets for which each is disjoint from the other's closure).

All continuous functions from X to {0,1} are constant, where {0,1} is the twopoint space endowed with the discrete topology.
Connected components
The maximal connected subsets (ordered by inclusion) of a nonempty topological space are called the connected components of the space. The components of any topological space X form a partition of X: they are disjoint, nonempty, 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 numbers are the onepoint sets, which are not open.
Let \Gamma_x be the connected component of x in a topological space X, and \Gamma_x' be the intersection of all clopen sets containing x (called quasicomponent of x.) Then \Gamma_x \subset \Gamma'_x where the equality holds if X is compact Hausdorff or locally connected.
Disconnected spaces
A space in which all components are onepoint sets is called totally disconnected. Related to this property, a space X is called totally separated if, for any two distinct elements x and y of X, there exist disjoint open neighborhoods U of x and V of y such that X is the union of U and V. Clearly any totally separated space is totally disconnected, but the converse does not hold. For example take two copies of the rational numbers Q, and identify them at every point except zero. The resulting space, with the quotient topology, is totally disconnected. However, by considering the two copies of zero, one sees that the space is not totally separated. In fact, it is not even Hausdorff, and the condition of being totally separated is strictly stronger than the condition of being Hausdorff.
Examples

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) ∪ (1, 2].

(0, 1) ∪ {3} is disconnected.

A convex set is connected; it is actually simply connected.

A Euclidean plane excluding the origin, (0, 0), is connected, but is not simply connected. The threedimensional Euclidean space without the origin is connected, and even simply connected. In contrast, the onedimensional Euclidean space without the origin is not connected.

A Euclidean plane with a straight line removed is not connected since it consists of two halfplanes.

ℝ, The space of real numbers with the usual topology, is connected.

If even a single point is removed from ℝ, the remainder is disconnected. However, if even a countable infinity of points are removed from ℝ^{n}, where n≥2, the remainder is connected.

Any topological vector space over a connected field is 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 twopoint space.^{[1]}

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, \mathbf{R}) (that is, the group of nbyn 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, \mathbf{C}) 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^{[2]}

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).
Path connectedness
This subspace of R² is pathconnected, because a path can be drawn between any two points in the space.
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 pathcomponent of X is an equivalence class of X under the equivalence relation which makes x equivalent to y if there is a path from x to y. The space X is said to be pathconnected (or pathwise connected or 0connected) if there is exactly one pathcomponent, i.e. if there is a path joining any two points in X. Again, many authors exclude the empty space.
Every pathconnected space is connected. The converse is not always true: examples of connected spaces that are not pathconnected include the extended long line L* and the topologist's sine curve.
However, subsets of the real line R are connected if and only if they are pathconnected; these subsets are the intervals of R. Also, open subsets of R^{n} or C^{n} are connected if and only if they are pathconnected. Additionally, connectedness and pathconnectedness are the same for finite topological spaces.
Arc connectedness
A space X is said to be arcconnected or arcwise connected if any two distinct points can be joined by an arc, that is a path f which is a homeomorphism between the unit interval [0, 1] and its image f([0, 1]). It can be shown any Hausdorff space which is pathconnected is also arcconnected. An example of a space which is pathconnected but not arcconnected is provided by adding a second copy 0' of 0 to the nonnegative real numbers [0, ∞). One endows this set with a partial order by specifying that 0'<a for any positive number a, but leaving 0 and 0' incomparable. One then endows this set with the order topology, that is one takes the open intervals (a, b) = {x  a < x < b} and the halfopen intervals [0, a) = {x  0 ≤ x < a}, [0', a) = {x  0' ≤ x < a} as a base for the topology. The resulting space is a T_{1} space but not a Hausdorff space. Clearly 0 and 0' can be connected by a path but not by an arc in this space.
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. The topologist's sine curve is an example of a connected space that is not locally connected.
Similarly, a topological space is said to be locally pathconnected if it has a base of pathconnected sets. An open subset of a locally pathconnected space is connected if and only if it is pathconnected. This generalizes the earlier statement about R^{n} and C^{n}, each of which is locally pathconnected. More generally, any topological manifold is locally pathconnected.
Examples of unions and intersections of connected sets
Set operations
The intersection of connected sets is not necessarily connected.
Each ellipse is a connected set, but the union is not connected, since it can be partitioned to two disjoint open sets U and V.
The union of connected sets is not necessarily connected. Consider a collection \{X_i\} of connected sets whose union is X=\cup_i{X_i}. If X is disconnected and U \cup V is a separation of X (with U, V disjoint and open in X), then each X_i must be entirely contained in either U or V, since otherwise, X_i \cap U and X_i \cap V (which are disjoint and open in X_i) would be a separation of X_i, contradicting the assumption that it is connected.
This means that, if the union X is disconnected, then the collection \{X_i\} can be partitioned to two subcollections, such that the unions of the subcollections are disjoint and open in X (see picture). This implies that in several cases, a union of connected sets is necessarily connected. In particular:

If the common intersection of all sets is not empty ( \cap X_i \neq \emptyset), then obviously they cannot be partitioned to collections with disjoint unions. Hence the union of connected sets with nonempty intersection is connected.

If the intersection of each pair of sets is not empty (\forall i,j: X_i \cap X_j \neq \emptyset) then again they cannot be partitioned to collections with disjoint unions, so their union must be connected.

If the sets can be ordered as a "linked chain", i.e. indexed by integer indices and \forall i: X_i \cap X_{i+1} \neq \emptyset, then again their union must be connected.

If the sets are pairwisedisjoint and the quotient space X / \{X_i\} is connected, then X must be connected. Otherwise, if U \cup V is a separation of X then q(U) \cup q(V) is a separation of the quotient space (since q(U), q(V) are disjoint and open in the quotient space).^{[3]}
Two connected sets whose difference is not connected
The set difference of connected sets is not necessarily connected. However, if X⊇Y and their difference X\Y is disconnected (and thus can be written as a union of two open sets X1 and X2), then the union of Y with each such component is connected (i.e. Y∪Xi is connected for all i). Proof:^{[4]} By contradiction, suppose Y∪X1 is not connected. So it can be written as the union of two disjoint open sets, e.g. Y∪X1 = Z1∪Z2. Because Y is connected, it must be entirely contained in one of these components, say Z1, and thus Z2 is contained in X1. Now we know that:


X = (Y∪X1)∪X2 = (Z1∪Z2)∪X2 = (Z1∪X2)∪(Z2∩X1)
The two sets in the last union are disjoint and open in X, so there is a separation of X, contradicting the fact that X is connected.
Theorems

Main theorem: Let X and Y be topological spaces and let f : X → Y be a continuous function. If X is (path)connected then the image f(X) is (path)connected. This result can be considered a generalization of the intermediate value theorem.

Every pathconnected space is connected.

Every locally pathconnected space is locally connected.

A locally pathconnected space is pathconnected if and only if it is connected.

The closure of a connected subset is connected.

The connected components are always closed (but in general not open)

The connected components of a locally connected space are also open.

The connected components of a space are disjoint unions of the pathconnected components (which in general are neither open nor closed).

Every quotient of a connected (resp. locally connected, pathconnected, locally pathconnected) space is connected (resp. locally connected, pathconnected, locally pathconnected).

Every product of a family of connected (resp. pathconnected) spaces is connected (resp. pathconnected).

Every open subset of a locally connected (resp. locally pathconnected) space is locally connected (resp. locally pathconnected).

Every manifold is locally pathconnected.
Graphs
Graphs have path connected subsets, namely those subsets for which every pair of points has a path of edges joining them. But it is not always possible to find a topology on the set of points which induces the same connected sets. The 5cycle graph (and any ncycle with n>3 odd) is one such example.
As a consequence, a notion of connectedness can be formulated independently of the topology on a space. To wit, there is a category of connective spaces consisting of sets with collections of connected subsets satisfying connectivity axioms; their morphisms are those functions which map connected sets to connected sets (Muscat & Buhagiar 2006). Topological spaces and graphs are special cases of connective spaces; indeed, the finite connective spaces are precisely the finite graphs.
However, every graph can be canonically made into a topological space, by treating vertices as points and edges as copies of the unit interval (see topological graph theory#Graphs as topological spaces). Then one can show that the graph is connected (in the graph theoretical sense) if and only if it is connected as a topological space.
Stronger forms of connectedness
There are stronger forms of connectedness for topological spaces, for instance:

If there exist no two disjoint nonempty open sets in a topological space, X, X must be connected, and thus hyperconnected spaces are also connected.

Since a simply connected space is, by definition, also required to be path connected, any simply connected space is also connected. Note however, that if the "path connectedness" requirement is dropped from the definition of simple connectivity, a simply connected space does not need to be connected.

Yet stronger versions of connectivity include the notion of a contractible space. Every contractible space is path connected and thus also connected.
In general, note that any path connected space must be connected but there exist connected spaces that are not path connected. The deleted comb space furnishes such an example, as does the abovementioned topologist's sine curve.
See also
References
Notes

^

^ Charles Weibel, The Kbook: An introduction to algebraic Ktheory

^ Credit: Saaqib Mahmuud and Henno Brandsma at Math StackExchange.

^ Credit: Marek at Math StackExchange
General references
This article was sourced from Creative Commons AttributionShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, EGovernment Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a nonprofit organization.