깊이 우선 탐색 (DFS) BFS 코드 참고 HashMap graph = new HashMap(); graph.put("A", new ArrayList(Arrays.asList("B", "C"))); graph.put("B", new ArrayList(Arrays.asList("A", "D"))); graph.put("C", new ArrayList(Arrays.asList("A", "G", "H", "I"))); graph.put("D", new ArrayList(Arrays.asList("B", "E", "F"))); graph.put("E", new ArrayList(Arrays.asList("D"))); graph.put("F", new ArrayList(Arrays.asList("D"))); g..