Finding Cut Edges¶
The code below works properly because of the lemma above(first lemma)1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
in this code, h[v] = height of vertex v in the DFS tree and d[v] = min(h[w] where there is at least vertex u in subtree of v in the DFS tree where there is an edge between $u$ and $w$)
-
First lemma will be placed here ↩