From 33ee808c4048b9cb179a39c7de6aaa468d95ef2d Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Sat, 29 Dec 2012 00:10:42 +0100 Subject: [PATCH] Test code for the non-DAG detection. --- fridge | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 **************************** + -- 2.39.5