Is there any algorithm to break a Connected Undirected Graph into exactly 2 connected components by deleting Minimum number of vertices.
Example 1: edge list [1-2, 2-3, 3-4], here we can delete vertex number 2 or vertex number 3 to decompose the graph into two connected component.
Example 2: edge list [1-2, 2-5, 2-3, 3-4], here we cannot delete vertex number 2 as it decomposes the graph into 3 connected components (which we don't want) but we can delete vertex number 3 to decompose the graph into two connected components.
[1-4, 2-4, 3-4]- Codor