Imagine a city whose neighbourhoods are connected by roads. Most roads are redundant â if one closes, drivers detour. But some roads are bridges: remove one and a whole district becomes unreachable. The same idea lives inside any network, from power grids to computer networks to social graphs.
In graph theory, a bridge (also called a cut edge) is an edge whose removal increases the number of connected components â it is the only path between two parts of the graph. An articulation point (or cut vertex) is a vertex with the same property: delete it, together with all its edges, and the graph splits.
Both concepts measure vulnerability. A network with many bridges and articulation points is fragile; a highly redundant network has none. Finding them quickly is therefore a fundamental task in network analysis, and the answer is elegant: Robert Tarjan's 1972 depth-first search algorithm does it in time â one pass, linear in the size of the graph, and provably no algorithm can do better since every edge must be inspected at least once.
The key insight is a pair of timestamps computed during DFS. When the search visits vertex u, it records a discovery time disc[u]. It also maintains a low value low[u]: the smallest discovery time reachable from the subtree rooted at u using at most one back edge (an edge leading back up to an ancestor in the DFS tree). If low[v] > disc[u] for a tree edge (u, v), then v cannot reach u or any ancestor of u without crossing that edge â so the edge is a bridge. If low[v] >= disc[u] and u is not the DFS root (or the root has two or more children), then u is an articulation point.
Related reading: Euler vs Hamiltonian Paths explores another foundational distinction in graph traversal, and Minimum Spanning Tree shows how DFS-family ideas underpin optimal connectivity.
Comments
Loading comments...