Prove undirected graph has <=2 components after removing one vertex

Analyze the prove undirected graph has <=2 components after removing one vertex.

Examples
Input: "test_input_1"
Output: "output_1"
Hints

Prove undirected graph has <=2 components after removing one vertex

Analyze the prove undirected graph has <=2 components after removing one vertex.