Connected component (graph theory)

From Wikipedia, the free encyclopedia

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. A strongly connected component is a similar concept defined for directed graphs.

In an undirected graph, the existence of a path between two vertices u and v is an equivalence relation, since:

  • There is a trivial path of length zero from any vertex to itself. (reflexivity)
  • If there is a path from u to v, it also a path from v to u. (symmetry)
  • If there is a path from u to v and a path from v to w, we can attach them together to form a path from u to w. (transitivity)

The connected components are then the equivalence classes of this relation.

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:

  • Are two vertices in the same connected component? Different connected components?
  • Is a graph connected? Not connected?
  • Do two graphs have the same number of connected components? Different number of components?
  • Is the number of connected components even? Is it odd?

Since SL=L, these problems all lie in L and so can be solved with a deterministic machine in O(log n) space. However, the most practical algorithms for them are randomized algorithms using random walks.


Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.