² 问题描述
扩展拓扑排序算法,进行课程学习计划的辅助制定。一个学生在一个学期可以同时学习多门课程,同一学期的各门课程之间必须不存在次序关系,制定课程计划使学生可以在最短时间内学完所有课程。
源程序:
#include<stdio.h>#include <stdio.h>#include <stdlib.h>#define MaxVertexNum 100typedef int VertexType;typedef struct node{ int adjvex; struct node *next;}EdgeNode;typedef struc...