5、next;edgenode(inte=0,edgenode*tmp=NULL){end=e;next=tmp;}};structvernode{intver;edgenode*head;};vernode*verlist=newvernode[7];//快速排序inta[10]={3,1,5,4,2,9,8,7,6};voidquickssort(inta[],intlow,inthigh){intmid;if(low>=high)return;mid=div(a,low,high);quicksort(a,lo
6、w,mid-1);quicksort(a,mid+1,high);}intdiv(inta[],intlow,inthigh){inttmp=a[low];do{while(low=tmp}--high;if(low7、}#includeusingnamespacestd;constintN=7;intdata[N][N]={0,1,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0};intmain(){intindegree[N]={0};for(inti=0;i8、num++;}}indegree[i]=num;}//找入度为0(现在开始排序了!!!)for(inti=0;i