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
Else if v != parent[u
Update low[u
End DFS for u
Repeat for all nodes
All bridges found
The algorithm runs DFS from each node, setting discovery and low times. It updates low values based on neighbors and identifies bridges when low[v] > discovery[u].
