summaryrefslogtreecommitdiff
path: root/c/dataStructure/408/graph/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/dataStructure/408/graph/main.c')
-rwxr-xr-xc/dataStructure/408/graph/main.c17
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;
+}