图的DFS实现与BFS实现import java.util.ArrayList; @SuppressWarnings("all")public class Graph { public static void main(String[] args) { int[][] matrix= {{ 0, 1, 0, 0, 0, 1, 1, 0, 0 }, { 1, 0, 1, 0, 0, 0, 1, 0, 1 }, { 0, 1, 0, 1, 0, 0, 0, 0, 1 }, ...