如下为拓扑排序的C程序。 (1)列出对右图执行该程序后的输出结果。 (2)在程序空白处填上适当
如下为拓扑排序的C程序。 (1)列出对右图执行该程序后的输出结果。 (2)在程序空白处填上适当语句。 void topsort(hdnodes graph[],int n) {int i,J,k,top;node pointer ptr; top=-1; for(i=0; i<n; i++) if(!graph[i].count){graph[i].count:top;top=i;) for (1=0; 1<n; 1++) if①(fpri