Void exit_path(ALGraph G, int v0 , int k)
{
visited[v0]=TRUE;
If(k<=0)return;
Else
For(p=G.vertices[v0]; p; p=p->next)
m=p->adjvex;
If(!visited[m])
visited[m]= TRUE;
printf(“%d”, m);
exit_path(G , m , k-1);
}
posted on 2011-02-25 12:10 xinjie 阅读(149) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 xinjie Powered by .NET 9.0 on Kubernetes