Concept Flow - Bridges in Graph Tarjan's Algorithm
Start DFS at node u
Set discovery[u
For each neighbor v of u
If v not visited
DFS(v)
Update low[u
If low[v
Edge u-v is a bridge
Record bridge
Else if v != parent[u
Update low[u
If all neighbors processed
Return from DFS(u)
The algorithm runs DFS from each node, setting discovery and low times. It updates low values based on neighbors. If low[v] > discovery[u], edge u-v is a bridge.
