# HG changeset patch # User deba # Date 1112103029 0 # Node ID 40e5d0d44a65af612016db9e586f429378c0b64f # Parent 806451fd084b787252066150205642df3babd11e Some bug fix diff -r 806451fd084b -r 40e5d0d44a65 src/lemon/array_map.h --- a/src/lemon/array_map.h Tue Mar 29 07:35:09 2005 +0000 +++ b/src/lemon/array_map.h Tue Mar 29 13:30:29 2005 +0000 @@ -229,6 +229,10 @@ } } + const Graph* getGraph() { + return graph; + } + // /// The stl compatible pair iterator of the map. // typedef MapIterator Iterator; // /// The stl compatible const pair iterator of the map. diff -r 806451fd084b -r 40e5d0d44a65 src/lemon/map_iterator.h --- a/src/lemon/map_iterator.h Tue Mar 29 07:35:09 2005 +0000 +++ b/src/lemon/map_iterator.h Tue Mar 29 13:30:29 2005 +0000 @@ -622,7 +622,7 @@ /// The map initialized const value set. MapValueSet(const Graph& _graph, Map& _map) - : graph(&_graph), map(&_map) {} + : map(&_map), graph(&_graph) {} /// The const iterator of the set. typedef MapValueIterator<_Graph, _Item, _Map> Iterator;