From: Francois Fleuret <francois@fleuret.org>
Date: Fri, 28 Dec 2012 23:10:42 +0000 (+0100)
Subject: Test code for the non-DAG detection.
X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=33ee808c4048b9cb179a39c7de6aaa468d95ef2d;p=mtp.git

Test code for the non-DAG detection.
---

diff --git a/fridge b/fridge
index 5d2b88a..ecb6931 100644
--- a/fridge
+++ b/fridge
@@ -55,3 +55,22 @@
   }
 
   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 ****************************
+