# HG changeset patch # User marci # Date 1073908196 0 # Node ID d33813af6e503ea1a90cc65fbb0efdc2a7be0613 # Parent 0810e3fc64a496e85a1fe1be9c2f029c12b5d193 b_node bug correction diff -r 0810e3fc64a4 -r d33813af6e50 src/work/marci_list_graph.hh --- a/src/work/marci_list_graph.hh Mon Jan 12 11:49:16 2004 +0000 +++ b/src/work/marci_list_graph.hh Mon Jan 12 11:49:56 2004 +0000 @@ -277,7 +277,7 @@ protected: node_iterator a_node() const { return node_iterator(v); } node_iterator b_node() const { - return (edge->_tail==v) ? node_iterator(edge->_head) : node_iterator(v); } + return (edge->_tail==v) ? node_iterator(edge->_head) : node_iterator(edge->_tail); } }; class in_edge_iterator : public edge_iterator { @@ -294,7 +294,7 @@ protected: node_iterator a_node() const { return node_iterator(v); } node_iterator b_node() const { - return (edge->_tail==v) ? node_iterator(edge->_head) : node_iterator(v); } + return (edge->_tail==v) ? node_iterator(edge->_head) : node_iterator(edge->_tail); } }; class sym_edge_iterator : public edge_iterator { @@ -322,7 +322,7 @@ protected: node_iterator a_node() const { return node_iterator(v); } node_iterator b_node() const { - return (edge->_tail==v) ? node_iterator(edge->_head) : node_iterator(v); } + return (edge->_tail==v) ? node_iterator(edge->_head) : node_iterator(edge->_tail); } }; };