[Lemon-commits] [lemon_svn] deba: r2239 - in hugo/trunk: doc lemon test

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:51:11 CET 2006


Author: deba
Date: Thu Oct  6 11:58:21 2005
New Revision: 2239

Removed:
   hugo/trunk/doc/adaptor_references.dox
Modified:
   hugo/trunk/lemon/graph_utils.h
   hugo/trunk/test/graph_test.cc

Log:
Little modifications



Modified: hugo/trunk/lemon/graph_utils.h
==============================================================================
--- hugo/trunk/lemon/graph_utils.h	(original)
+++ hugo/trunk/lemon/graph_utils.h	Thu Oct  6 11:58:21 2005
@@ -1400,7 +1400,7 @@
     }
 
     void add(const Node& node) {
-      if (size(graph.id(node) + 1) > values.size()) {
+      if (size(graph.id(node) + 1) >= (int)values.size()) {
 	values.resize(size(graph.id(node) + 1));	
       }
     }

Modified: hugo/trunk/test/graph_test.cc
==============================================================================
--- hugo/trunk/test/graph_test.cc	(original)
+++ hugo/trunk/test/graph_test.cc	Thu Oct  6 11:58:21 2005
@@ -7,6 +7,7 @@
 #include <lemon/list_graph.h>
 #include <lemon/smart_graph.h>
 #include <lemon/full_graph.h>
+#include <lemon/hypercube_graph.h>
 
 #include "test_tools.h"
 #include "graph_test.h"
@@ -59,6 +60,9 @@
   { // checking full graph
     checkConcept<StaticGraph, FullGraph >();
   }
+  { // checking full graph
+    checkConcept<StaticGraph, HyperCubeGraph >();
+  }
 
   std::cout << __FILE__ ": All tests passed.\n";
 



More information about the Lemon-commits mailing list