b_node bug correction
authormarci
Mon, 12 Jan 2004 11:49:56 +0000
changeset 13d33813af6e50
parent 12 0810e3fc64a4
child 14 99014d576aed
b_node bug correction
src/work/marci_list_graph.hh
     1.1 --- a/src/work/marci_list_graph.hh	Mon Jan 12 11:49:16 2004 +0000
     1.2 +++ b/src/work/marci_list_graph.hh	Mon Jan 12 11:49:56 2004 +0000
     1.3 @@ -277,7 +277,7 @@
     1.4      protected:
     1.5        node_iterator a_node() const { return node_iterator(v); }
     1.6        node_iterator b_node() const { 
     1.7 -	return (edge->_tail==v) ? node_iterator(edge->_head) : node_iterator(v); }
     1.8 +	return (edge->_tail==v) ? node_iterator(edge->_head) : node_iterator(edge->_tail); }
     1.9      };
    1.10      
    1.11      class in_edge_iterator : public edge_iterator {
    1.12 @@ -294,7 +294,7 @@
    1.13      protected:
    1.14        node_iterator a_node() const { return node_iterator(v); }
    1.15        node_iterator b_node() const { 
    1.16 -	return (edge->_tail==v) ? node_iterator(edge->_head) : node_iterator(v); }
    1.17 +	return (edge->_tail==v) ? node_iterator(edge->_head) : node_iterator(edge->_tail); }
    1.18      };
    1.19  
    1.20      class sym_edge_iterator : public edge_iterator {
    1.21 @@ -322,7 +322,7 @@
    1.22      protected:
    1.23        node_iterator a_node() const { return node_iterator(v); }
    1.24        node_iterator b_node() const { 
    1.25 -	return (edge->_tail==v) ? node_iterator(edge->_head) : node_iterator(v); }
    1.26 +	return (edge->_tail==v) ? node_iterator(edge->_head) : node_iterator(edge->_tail); }
    1.27      };
    1.28  
    1.29    };