Boost logo

Boost Users :

Subject: Re: [Boost-users] Removing edges using remove_edge in adjacency list
From: Trevor Harmon (Trevor.W.Harmon_at_[hidden])
Date: 2010-11-01 17:41:12


On Nov 1, 2010, at 12:29 PM, giridhar wrote:

> Now I want to remove the edges that has been found by Dijkstra's
> algorithm

Care must be taken when removing edges during iteration. Have you read
the section on "Iterator and Descriptor Stability/Invalidation" in
libs/graph/doc/adjacency_list.html?

Trevor


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net