Some bug fix
authordeba
Tue, 29 Mar 2005 13:30:29 +0000
changeset 127140e5d0d44a65
parent 1270 806451fd084b
child 1272 17be4c5bc6c6
Some bug fix
src/lemon/array_map.h
src/lemon/map_iterator.h
     1.1 --- a/src/lemon/array_map.h	Tue Mar 29 07:35:09 2005 +0000
     1.2 +++ b/src/lemon/array_map.h	Tue Mar 29 13:30:29 2005 +0000
     1.3 @@ -229,6 +229,10 @@
     1.4        }
     1.5      }
     1.6  
     1.7 +    const Graph* getGraph() {
     1.8 +      return graph;
     1.9 +    }
    1.10 +
    1.11  //     /// The stl compatible pair iterator of the map.
    1.12  //     typedef MapIterator<ArrayMap> Iterator;
    1.13  //     /// The stl compatible const pair iterator of the map.
     2.1 --- a/src/lemon/map_iterator.h	Tue Mar 29 07:35:09 2005 +0000
     2.2 +++ b/src/lemon/map_iterator.h	Tue Mar 29 13:30:29 2005 +0000
     2.3 @@ -622,7 +622,7 @@
     2.4  
     2.5      /// The map initialized const value set.
     2.6      MapValueSet(const Graph& _graph, Map& _map) 
     2.7 -      : graph(&_graph), map(&_map) {}
     2.8 +      : map(&_map), graph(&_graph) {}
     2.9  
    2.10      /// The const iterator of the set.
    2.11      typedef MapValueIterator<_Graph, _Item, _Map> Iterator;