**Problem Statement:**
Given the required input arguments, write an efficient algorithm to solve the **Graph Valid Tree** problem. Implement the required logic as specified by standard definitions for this classic algorithmic challenge.
**Hint / Expected Approach:**
n−1 edges + connected (no cycle) via Union-Find
**Edge Cases to Consider:**
- (1) Single node, no edges
- (2) Extra edge
- (3) Disconnected with n−1 edges