[Lemon-commits] [lemon_svn] deba: r2577 - hugo/trunk/lemon

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


Author: deba
Date: Fri Feb 24 12:13:09 2006
New Revision: 2577

Modified:
   hugo/trunk/lemon/list_graph.h

Log:
Bug fix



Modified: hugo/trunk/lemon/list_graph.h
==============================================================================
--- hugo/trunk/lemon/list_graph.h	(original)
+++ hugo/trunk/lemon/list_graph.h	Fri Feb 24 12:13:09 2006
@@ -716,7 +716,7 @@
       node.id =  first_bnode != -1 ? (first_bnode << 1) + 1 : -1;
     }
     void nextBNode(Node& node) const {
-      node.id = aNodes[node.id >> 1].next_node;
+      node.id = bNodes[node.id >> 1].next_node;
     }
 
     void first(Node& node) const {
@@ -861,7 +861,7 @@
 
     Node addBNode() {
       int bNodeId;
-      if (first_free_anode == -1) {
+      if (first_free_bnode == -1) {
         bNodeId = bNodes.size();
         bNodes.push_back(NodeT());
       } else {



More information about the Lemon-commits mailing list