]> wirehaze git hosting - graph-theory.git/blobdiff - graph/dfs.c

wirehaze git hosting

add bfs
[graph-theory.git] / graph / dfs.c
index 72b05bbeb2f08683e4abab24f52a4f4edd2d09fe..e819f46ff263b92d32ce8521348b884e7e1a1551 100644 (file)
@@ -1,18 +1,7 @@
 #include "graph/dfs.h"
+#include "graph/search.h"
 #include <stdlib.h>
 
-enum color
-{
-  WHITE = 0,
-  RED,
-  BLUE
-};
-
-struct state
-{
-  enum color c;
-};
-
 static int
 dfs_ (struct graph *g, struct graph *dt, struct state *vs, unsigned int ri)
 {