articulation-point-code
articulation-point-code
// in an undirected graph
#include<iostream>
#include <list>
#define NIL -1
using namespace std;
Graph::Graph(int V)
{
this->V = V;
adj = new list<int>[V];
}
// (2) If u is not root and low value of one of its child is more
// than discovery value of u.
if (parent[u] != NIL && low[v] >= disc[u])
ap[u] = true;
}
return 0;
}