12 Oct
2012
12 Oct
'12
4:31 p.m.
I am trying to iterate over my labeled_graph like so: struct Vertex { std::string vertType; }; typedef Graph::vertex_iterator VertexIter; VertexIter vertexIter, vertexEnd; for (tie(vertexIter, vertexEnd) = vertices(graph); vertexIter != vertexEnd; vertexIter++) { std::string vertexType = graph[*vertexIter].vertType; } However, I get a compiler error saying that graph has no operator [] that accepts an unsigned int. How should I be doing what I'm trying to do? -- View this message in context: http://boost.2283326.n4.nabble.com/BGL-How-do-I-iterate-over-a-labeled-graph... Sent from the Boost - Users mailing list archive at Nabble.com.