mirror of
https://github.com/kangjianwei/Data-Structure.git
synced 2026-02-09 02:02:32 +08:00
30 lines
615 B
C
30 lines
615 B
C
#include <stdio.h>
|
|
#include "ALGraph.h"
|
|
#include "CriticalPathMethod.h"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
ALGraph G;
|
|
|
|
printf("████████ 创建并打印有向网... \n");
|
|
{
|
|
char* path[4];
|
|
|
|
path[0] = "";
|
|
path[1] = "TestData_DN.txt";
|
|
path[2] = "";
|
|
path[3] = "";
|
|
|
|
CreateGraph(&G, path);
|
|
PrintGraph(G);
|
|
}
|
|
PressEnterToContinue(debug);
|
|
|
|
printf("████████ 求取有向网的关键路径... \n");
|
|
{
|
|
CriticalPath(G);
|
|
}
|
|
PressEnterToContinue(debug);
|
|
|
|
return 0;
|
|
}
|