question: public UndirectedGraphNode cloneGraphB ( UndirectedGraphNode node ) { Map < Integer , UndirectedGraphNode > map = new HashMap < > ( ) ; return dfs ( node , map ) ; }
target:  DFS. Pass the node and map to its neighbors. Add neighbors dfs result to its neighbors and return.