Boost logo

Boost Users :

Subject: Re: [Boost-users] [BOOST USERS] [ BGL ] [GRAPH ] iterating through the vertices and edges of a filter graph
From: David Doria (daviddoria_at_[hidden])
Date: 2012-01-26 10:26:34


> Yes, you use those functions and use the filtered_iterators produced to do
> your iteration.  The special iterator type is used to return only the
> vertices and edges allowed by the filter.  Iteration is exactly the same as
> on an unfiltered graph, just with the filtered_graph's iterators and
> functions.
>
> -- Jeremiah Willcock

Srinivas,

I updated the example to get a vertex_iterator at the end:

http://programmingexamples.net/wiki/CPP/Boost/BGL/FilteredGraphVertices

David


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