[Lemon-user] Status of Ticket #146: copying graph maps

Kovács Péter kpeter at inf.elte.hu
Fri Apr 9 00:18:35 CEST 2010


Dear All,

I cannot guess whether the assignment operators and copy constructors of 
graph maps will be implemented/allowed or not in the (near) future. In 
LEMON 1.2, however, there is a mapCopy() function, so I suggest this 
tool. E.g.,

   Graph::ArcMap<int>  c(g);
   ...
   Graph::ArcMap<int>  copy(g);
   mapCopy(g, c, copy);

Several other useful map utility functions were also implemented 
similarly to the STL algorithms, see:
http://lemon.cs.elte.hu/pub/doc/1.2/a00516.html

Regards,
Peter


 > Dear All,
 >
 > I can't seem to copy graph maps. I mean this fails:
 >
 >    Graph::ArcMap<int>  c(g);
 >    ...
 >    Graph::ArcMap<int>  copy = c;
 >
 > I understand that this is now a feature not a bug. Will map copy (as 
of ticket
 > #146) be implemented soon? Until then, how do I copy a graph map?
 >
 > Thnaks,
 > Gabor
 >



More information about the Lemon-user mailing list