Find all "critical nodes" in a graph

6.9k Views Asked by At

Say there is a graph in which every node is connected to every other by some path. How would i find the particular nodes, which if removed would lead to some of the nodes NOT being connected to all the other points?

I think DFS needs to be used. But i don't undertsand how.

1

There are 1 best solutions below

0
On

You are basically trying to find cut vertices in a connected graph. This is a common problem, eg. see See http://www.geeksforgeeks.org/articulation-points-or-cut-vertices-in-a-graph/