Boost logo

Boost Users :

Subject: Re: [Boost-users] iterate over vertices with special propoerty
From: Philipp Moeller (philipp.moeller_at_[hidden])
Date: 2012-01-01 13:26:09


Amir Yazdanbakhsh <amir.yazdanbakhsh_at_[hidden]> writes:

> I want to write an iterator which returns the vertices with a special
> property. For example have an functions which takes a graph and a string
> and returns an iterator over all the vertices that have this string as
> their name. Thanks

boost::filter_iterator should do it.

-- 
Philipp Moeller, GeometryFactory

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