In an undirected graph, a connected component or component is a maximal connected subgraph. Two vertices are in the same connected component if and only if there exists a path between them. In a drawing of a graph, the connected components can each be drawn separately with empty space between them. A nonempty connected graph has one connected component. Directed graphs have a similar concept called strongly connected component
In an undirected graph, the existence of a path between two vertices u and v is an equivalence relation, since:
The multiplicity of the eigenvalue 0 in the Laplacian of a graph is equal to the number of connected components in the graph.
Connected components are useful because often algorithms or theorems can be applied to each connected component individually, taking advantage of it being a connected graph, and combine these solutions to obtain a solution for the entire graph. For example, if we find a minimum spanning tree or a maximum matching for each connected component, their union is a minimum spanning forest or maximum matching for the entire graph.
Many computational problems related to connected components are complete for the complexity class SL, such as:
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Connected component (graph theory)".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world