diff options
author | garhve <git@garhve.com> | 2022-12-05 19:43:39 +0800 |
---|---|---|
committer | garhve <git@garhve.com> | 2022-12-05 19:43:39 +0800 |
commit | c6bc541ab58363d783e60a007e80e9bf9e231fda (patch) | |
tree | a59c7ed0d05225c5876f3e5e919d4f6ed0c447ff /c/dataStructure/408/graph/main.c |
initialize
Diffstat (limited to 'c/dataStructure/408/graph/main.c')
-rwxr-xr-x | c/dataStructure/408/graph/main.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/c/dataStructure/408/graph/main.c b/c/dataStructure/408/graph/main.c new file mode 100755 index 0000000..6219969 --- /dev/null +++ b/c/dataStructure/408/graph/main.c @@ -0,0 +1,17 @@ +#include "graph.h" + +int main(void) +{ + graph gh; + bool directed = true; + initializeGraph(&gh,directed); + + readGraph(&gh,directed); + + printGraph(&gh); + bfs(&gh, 1); + + purgeGraph(&gh); + + return 0; +} |