下面是算法是用来实现采用邻接表存储的图的深度优先搜索遍历,请填写空白处程序的语句。 struct ArcNode { int adjvex; ArcNode *next; }; struct VertexNode { char vert; ArcNode *firstedge; }adjlist[20]; int vistited={0}; void DFS(int v) { ArcNode *p; int j; cout < 1 ; p = adjlist[v].firstedge; // 工作指针 p 指向顶点 v 的 while(p!=NULL) // 依次搜索顶点 v 的邻接点 j { j =p->adjvex; if (visited[j] == 0) 2 ; 3 ; } }