5、ructvernode{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,low,mid-1);quicksort(a,mid+1,high);}intdiv(inta[],intlow,inthigh){inttmp=a[lo
6、w];do{while(low=tmp}--high;if(lowusingnamespacestd;constintN=7;intdata[N][N]={0,1,1,0,0,0,0,0,0,0,1,1,1,
7、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、indegree[j]==0)break;}//找到度为0的点cout<