DFS와 BFS는 그래프(정점node와 간선edge로 이루어진 자료구조) 탐색 방법입니다.문제 풀이는 백준을 이용했습니다.import java.util.*;import java.io.*;public class Main { static int N,M,V; static int[][] arr; static boolean[] checked; static Queue q = new LinkedList(); static StringBuilder sb = new StringBuilder(); public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReade..