Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a fast algorithm for finding critical nodes?

I'm looking for a quick method/algorithm for finding which nodes in a graph is critical.

For example, in this graph: alt text

Node number 2 and 5 are critical.

My current method is to try removing one non-endpoint node from the graph at a time and then check if the entire network can be reached from all other nodes. This method is obvious not very efficient.

What are a better way?

like image 942
monoceres Avatar asked Sep 09 '10 16:09

monoceres


1 Answers

See biconnected components. Calling them articulation points instead of critical nodes seems to yield better search results.

In any case, the algorithm consists of a simple depth first search where you maintain certain information for each node.

like image 103
IVlad Avatar answered Sep 26 '22 15:09

IVlad