判断邻接表存储的有向图是否有环

#include<stdio.h> #include<stdlib.h> #include<stack> #define max 20 using namespace std; int indegree[max]; typedef struct Arcnode{ int adj; struct Arcnode *nex
相关文章
相关标签/搜索