说明:本文实现代码用到了之前编写的循环队列:
编写接口public interface GraphInterface {
/**
* 图的深度优先遍历
* @param startIndex
*/
void DFS(int startIndex);
/**
* 图的广度优先遍历
* @param startIndex
*/
说明:本文实现代码用到了之前编写的循环队列:
编写接口public interface GraphInterface {
/**
* 图的深度优先遍历
* @param startIndex
*/
void DFS(int startIndex);
/**
* 图的广度优先遍历
* @param startIndex
*/
微信扫码登录