Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Lecture 11 and 12.doc
Скачиваний:
1
Добавлен:
01.07.2025
Размер:
1.47 Mб
Скачать

Connectedness in undirected graphs

An undirected graph is called connected if there is a path between every pair of distinct vertices of the graph.

Example.

The graph G is connected, since for every pair of distinct vertices there is a path between them. However, the graph H is not connected. For instance, there is no path in H between vertices a and d.

Theorem 1. There is a simple path between every pair of distinct vertices of a connected undirected graph.

Proof: Let u and v be two distinct vertices of a connected undirected graph G = (V, E). Since G is connected, there is at least one path between u and v. Let x0, x1, …, xn, where x0 = u and xn = v, be the vertex sequence of a path of least length. This path of least length is simple. To see this, suppose it is not simple. Then xi = xj for some i and j with . This means that there is a path from u to v of shorter length with vertex sequence x0, x1, …, xi–1, xj, …, xn obtained by deleting the edges corresponding to the vertex sequence xi, …, xj–1.

A graph that is not connected is the union of two or more connected subgraphs, each pair of which has no vertex in common. These disjoint connected subgraphs are called the connected components of the graph.

Sometimes the removal of a vertex and all edges incident with it produces a subgraph with more connected components than in the original graph. Such vertices are called cut vertices (or articulation points). The removal of a cut vertex from a connected graph produces a subgraph that is not connected. Analogously, an edge whose removal produces a graph with more connected components than in the original graph is called a cut edge or bridge.

Example. Find the cut vertices and cut edges in the graph G.

Solution: The cut vertices of G are b, c and e. The removal of one of these vertices (and its adjacent edges) disconnects the graph. The cut edges are {a, b} and {c, e}. Removing either one of these edges disconnects G.

Connectedness in directed graphs

A directed graph is strongly connected if there is a path from a to b and from b to a whenever a and b are vertices in the graph. A directed graph is weakly connected if there is a path between any two vertices in the underlying undirected graph. That is, a directed graph is weakly connected iff there is always a path between two vertices when the directions of the edges are disregarded. Clearly, any strongly connected directed graph is also weakly connected.

Example. Are the directed graphs G and H strongly connected? Are they weakly connected?

Solution: G is strongly connected because there is a path between any two vertices. The graph H is not strongly connected. There is no directed path from a to b in this graph. However, H is weakly connected, since there is a path between any two vertices in the underlying undirected graph of H.

Glossary

adjacency matrix – матрица смежности; conceivable – мыслимый; circuit – цепь, кругооборот

to pass through – проходить; cut vertex (articulation point) – разъединяющая вершина

to traverse – пересекать; cut edge (bridge) – разъединяющее ребро

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]