Test code for the non-DAG detection.
authorFrancois Fleuret <francois@fleuret.org>
Fri, 28 Dec 2012 23:10:42 +0000 (00:10 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 28 Dec 2012 23:10:42 +0000 (00:10 +0100)
fridge

diff --git a/fridge b/fridge
index 5d2b88a..ecb6931 100644 (file)
--- a/fridge
+++ b/fridge
   }
 
   delete file;
+
+######################################################################
+
+2012 Dec 29 00:09:41 (from mtp_example.cc)
+
+  { // ******************************* START ***************************
+#warning Test code added on 2012 Dec 29 00:07:21
+    int nb_vertices = 100;
+    int *vertex_from = new int[nb_vertices];
+    int *vertex_to = new int[nb_vertices];
+    for(int k = 0; k < nb_vertices; k++) {
+      vertex_from[k] = k;
+      vertex_to[k] = (k + 1)%nb_vertices;
+    }
+    MTPGraph mg(nb_vertices, nb_vertices, vertex_from, vertex_to, 0, nb_vertices/2);
+    delete[] vertex_from;
+    delete[] vertex_to;
+  } // ******************************** END ****************************
+