int DFS_AM(AMgraph G,int v) { cout<<v; visited[v]=true; for(w=0;w<G.vexnum;w++) if((G.arcs[v][w]!=0)&&(!visited[w])) DFS_AM(G,w); return 0; }