[BGL]:adjacency_list swap

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[BGL]:adjacency_list swap

Louis Lavery
Hello,

Does adjacency_list::swap swap the bundled vertex properties?

Also, does it invalidate vertex_descriptors?

Thanks, Louis.



_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: [BGL]:adjacency_list swap

Jeremy Siek
Hi Louis,

On Apr 17, 2006, at 9:37 AM, Louis Lavery wrote:
> Hello,
>
> Does adjacency_list::swap swap the bundled vertex properties?

Yes.

> Also, does it invalidate vertex_descriptors?

Yes.

Boy... the code for adjacency_list::swap does not look very efficient...
it really ought to be rewritten.

Cheers,
Jeremy
_______________________________________________
Boost-users mailing list
[hidden email]
http://lists.boost.org/mailman/listinfo.cgi/boost-users