|
Boost Users : |
Subject: Re: [Boost-users] boost graph: Error with compressed_sparse_row graph and strong_components
From: aitor (a.soroa_at_[hidden])
Date: 2011-05-10 03:13:50
On Mon, May 09, 2011 at 10:26:52AM -0400, Jeremiah Willcock wrote:
>
> Try changing the strong_components call to:
>
> boost::iterator_property_map<
> std::vector<int>::iterator,
> boost::property_map<WebGraph, boost::vertex_index_t>::type
> >pm(v.begin(), get(boost::vertex_index, g));
> int i = boost::strong_components(g, pm);
it works nicely. Thank you !
-- aitor
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