
13 Apr
2007
13 Apr
'07
6:41 a.m.
On Fri, 2007-04-13 at 04:50 -0700, Maarten Nieber wrote:
Graph g; ComponentPropertyMap vertexToComponent = boost::get(component_t(), g);
// THIS LINE DOES NOT COMPILE. No problem if boost::vecS is used instead of boost::setS in the Graph typedef! connected_components(g, vertexToComponent); }
I believe you do not want the () after the word component_t. In my examples I do not have boost::property_map<Graph_Base::Graph_t, boost::vertex_name_t>::type clist = boost::get(boost::vertex_name, m_graph); I think you want the line to read: Graph g; ComponentPropertyMap vertexToComponent = boost::get(component_t, g); Stephen