From 2e29a8d95e4e261088612b55c6d549501b6ca08b Mon Sep 17 00:00:00 2001 From: Rahul R <43530233+muffpy@users.noreply.github.com> Date: Tue, 20 Oct 2020 22:48:20 +0100 Subject: [PATCH] Update 22.3-7.h Change dfs-stack to not include break in inner loop --- Chap22/22.3-7/22.3-7.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chap22/22.3-7/22.3-7.h b/Chap22/22.3-7/22.3-7.h index c08f19b..1fd7957 100644 --- a/Chap22/22.3-7/22.3-7.h +++ b/Chap22/22.3-7/22.3-7.h @@ -65,7 +65,7 @@ void dfsStack(Graph& G) { S.push(w); printGraph(G); isNeighborhoodsAllDiscovered = false; - break; +// break; } } } @@ -83,4 +83,4 @@ void dfsStack(Graph& G) { } // namespace CH22 } // namespace CLRS -#endif \ No newline at end of file +#endif