DFSExample
B
b
e
f
a
b
e
f
B
d
gc
a d
gc
GivenagraphG=(V;E),ittraversesallverticesof
Gand
constructsaforest(acollectionofrootedtrees),to-
getherwithasetofsourcevertices(theroots).
2
Articulationpoints:Howtoclimbup
Observethatforanundirectedgraph,itcanonlyhas
treeedgesorbackedges.Asubtreecanonlyclimb
totheupperpartofthetreebyabackedge,anda
vertexcanonlyclimbuptoitsancestor.
v
. . . .
k
w
1
w
2
w
8