Problem Solving

Connected Component

A board displays two separate clusters of pins and threads.

Connected Component definition

A connected component is a maximal connected part of an undirected graph.

In Spanish
componente conexa
Topic
Graph theory

Connected Component in a picture

Connected Component diagramA, B, and C form one component. D and E form another.ABCDE
A, B, and C form one component. D and E form another.

How it works

Start at a vertex and collect all vertices you can reach, along with the edges between them. The result is one component. Maximal means that adding any vertex from outside it would make the part disconnected. Every vertex belongs to exactly one component.

Worked examples

How many components does a graph of three isolated vertices have?

Three, each consisting of one vertex.

A triangle and a separate edge are drawn without a link. How many components are there?

Two.

What happens if you add an edge joining two components?

They merge into one component.

Common mistake

Include every vertex reachable from the starting vertex. A smaller connected subgraph within it is only part of the component.

Quick check

Can an isolated vertex be a component?

Show answer

Yes.

Can two components share a vertex?

Show answer

No.

Does a nonempty connected graph have one component?

Show answer

Yes.

Sources

Flashcard

Connected Component

Reveal the definition

A connected component is a maximal connected part of an undirected graph.

Effortless Math. “Connected Component.” Math Dictionary.