示例结果:BFS(graph,'A');//A,B,C,D,E,FBFS(graph,'C');//C,A,B,D,E,F
BFS(graph,'A');//A,B,C,D,E,F
BFS(graph,'C');//C,A,B,D,E,F
若有收获,就点个赞吧
0 人点赞
让时间为你证明