Move Graph class
Added dfs for undirected graph