Given an undirected graph with n nodes and a list of edges, determine whether there is any path from src to dst. Return true or false. The input is JSON {n, edges, src, dst}.
Input: JSON {n, edges, src, dst}.
Output: Boolean — true or false.
Input: {"n":5,"edges":[[0,1],[0,2],[1,3],[2,4]],"src":0,"dst":4}
Output: true
Explanation: 0-2-4 connects them.Input: {"n":5,"edges":[[0,1],[2,3]],"src":0,"dst":3}
Output: false
Explanation: Different components.Input: {"n":1,"edges":[],"src":0,"dst":0}
Output: true
Explanation: Same node.1<=n<=10^5undirected