From 3e0331b522eeec0e4995f0bff762c275bf605ff0 Mon Sep 17 00:00:00 2001 From: sophiakumar <72300438+sophiakumar@users.noreply.github.com> Date: Mon, 7 Jun 2021 14:16:55 +0530 Subject: [PATCH] Update articulationCpp Incrementation of child value --- articulationCpp | 1 + 1 file changed, 1 insertion(+) diff --git a/articulationCpp b/articulationCpp index 1d72e37..5bb89df 100644 --- a/articulationCpp +++ b/articulationCpp @@ -13,6 +13,7 @@ void dfs(int node, int parent, vector &vis, vector &tin, vector & if(low[it] >= tin[node] && parent != -1) { isArticulation[node] = 1; } + child++; } else { low[node] = min(low[node], tin[it]); }