拓扑排序---(图的领接表实现)
摘要:
#includeusing namespace std;#define MAX_NODE 30#define MAX_INFO 10bool isOutput[MAX_NODE]; //记录该节点有没有输出struct ListNode{ ListNode(){next=NULL;} int position; ListNode* next; };struct VertexNode{ VertexNode() { head=NULL; inDegree=0; } int currentPosition; //当前节点在图存储结构中数组的位置 int inDegree; ... 阅读全文
posted @ 2013-09-05 18:52 新一 阅读(385) 评论(0) 推荐(0)
浙公网安备 33010602011771号