Advanced maths

Graph bridges and articulation points calculator

Find bridges, articulation vertices and edge-bearing biconnected blocks of a simple undirected graph, retaining disconnected components and isolates.

Your numbers

Vertices are numbered 1 through this count. Include vertices without edges.
One undirected edge per row. No self-loops or repeated unordered pairs. Leave empty for isolated vertices.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

A bridge is an edge whose deletion increases the number of connected components. An articulation point is a vertex whose deletion, together with its incident edges, increases that component count. This calculator performs a depth-first traversal, records discovery and low-link values and groups edges into biconnected blocks. The definitions apply relative to the original graph, including when that graph already has several components. Isolated vertices are reported separately because they do not belong to an edge-bearing block.

THE FORMULADFS tree edge u–v is a bridge when low[v]>disc[u]; nonroot u is a cut vertex when some child has low[v]≥disc[u].

A worked example

Take triangle 1–2–3–1, append edges 3–4 and 4–5, and include isolated vertex six. Vertices three and four are articulation points. Rows 3–4 and 4–5 are bridges. The three triangle edges form one block, and each bridge forms a two-vertex block, giving three edge-bearing blocks in total. The original graph has two components. Removing isolated vertex six reduces that count, so six is not an articulation point.

Good to know

Simple undirected graphs with 1–40 vertices and at most 200 edge rows. Self-loops and repeated unordered pairs are rejected; a pair of parallel edges would change bridge semantics. Each input edge belongs to one returned block, while a cut vertex can belong to several blocks. A single edge is treated as a two-vertex block. Isolates are listed outside these blocks. Structural separation is not a probabilistic failure analysis or a test of simultaneous multiple failures.

Low-link values distinguish a detour from a genuine bridge

The discovery number records when a vertex was first reached. Its low-link value records the earliest discovery reachable through its descendant subtree and an allowed back edge. If the subtree below a tree edge can reach the parent or an earlier ancestor by another edge, removing that tree edge need not separate it. The strict bridge inequality low[child]>discovery[parent] means no such return route exists.

For an articulation point, the relevant inequality is non-strict. A child subtree that can return to the parent but cannot get above it becomes disconnected when that parent itself is removed. The root of a depth-first tree is a special case: it is a cut vertex only if it has more than one traversal child. Applying the nonroot rule blindly to a root would incorrectly flag some connected cycles and single-branch trees.

A triangle followed by two bridges has two articulation vertices and one isolate123456BridgeBridgeIsolateCut vertices: 3,4; edge blocks: 3
Edges 1–2, 2–3, 3–1 form a cycle block. Edges 3–4 and 4–5 are bridges. Vertices 3 and 4 are articulation points; vertex 6 is isolated and does not belong to an edge block.

The Strongly connected components calculator for a directed graph concerns mutual directed reachability. Bridges and cut vertices instead describe undirected single-edge or single-vertex removal.

Blocks partition edges, while articulation points can be shared

Every edge appears in exactly one edge-bearing biconnected block in this output. Vertices are not partitioned in the same way: articulation vertices can connect several blocks and therefore appear in multiple block rows. In the worked example, vertex three belongs to the triangle block and the bridge block leading to four. This repeated label is meaningful structure, not a duplicate edge or an accidental table entry.

A bridge need not have two articulation endpoints. In a two-vertex one-edge component, the edge is a bridge, but removing either vertex leaves one vertex and does not increase the component count. Likewise, a visually central vertex can lie on several cycles and still fail to be a cut vertex. Use the returned deletion-based definitions rather than a drawing’s apparent bottlenecks. Directed strong components answer mutual reachability under one-way travel and should not be substituted for these undirected blocks.

A few questions, answered

Why is an isolated vertex not an articulation point?

Deleting an isolate removes a component; it does not increase the number of components. Its lack of incident edges also keeps it outside the edge-block table.

Are all edges in a cycle safe from being bridges?

In a simple undirected graph, an edge on a cycle has an alternative endpoint route and is not a bridge. That does not prove the graph survives arbitrary combinations of failures.

Find your calculator

Start typing to explore the library.