Given any connected and undirected graph G(V,E)
, show, that there always exists a vertex v
in G
whose removal from the graph does not affect the connectivity of G
, that is, there exists a path between each pair of vertices.
Show a O(|E|+|V|)
time algorithm to find such a vertex.
So I started off trying to think of an algorithm that would solve this problem. I figured a good way to go is using a breadth-first-search (BFS). Then you would be able to remove vertex in the highest level layer. Since BFS is done by layers, removing a vertex from the highest layer shouldn't disconnect the other vertices from the graph.
Am I on the right track? And how would I prove this?