[Lemon-user] Setting edge map values of new edge

Alpár Jüttner alpar at cs.elte.hu
Fri Apr 8 16:48:51 CEST 2011


On Fri, 2011-04-08 at 15:17 +0100, Zenna Tavares wrote:
> I have an edge map, if I add edges to my graph, do I need to create a
> new edge map? 

No, when you add new edges, the map storage will automatically be
expanded and the default constructor of the newly created object is
called.

Similarly, when an edge is removed, the corresponding containers in all
edge maps are destructed properly.

This is a fundamental feature of the graph maps.

See e.g.
http://lemon.cs.elte.hu/pub/tutorial/a00010.html#sec_digraph_maps

Regards,
Alpar


>  If so, why was it designed like this. and how what should I do if I
> need to often create edges and set new weights. 
> _______________________________________________
> Lemon-user mailing list
> Lemon-user at lemon.cs.elte.hu
> http://lemon.cs.elte.hu/mailman/listinfo/lemon-user





More information about the Lemon-user mailing list