OK, thanks. Now how do I declare a graph that does not allow parallel edges?

---------- Forwarded message ----------
From: moritz Hilger < moritz.hilger@gmail.com>
Date: Sep 7, 2006 2:18 AM
Subject: Re: [Boost-users] Why am I not hearing that my edge has already been added?
To: boost-users@lists.boost.org


The problem is that add_edge() never clears boolvar - it is always true, even when I coerce redundant edges, as in the following code:

the problem is that your graph allows parallel edges, therefor the adding always succeeds. you would have to check for existing edges via out_edges(va).
cheers,
moritz

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users