
23 Jan
2012
23 Jan
'12
8:04 p.m.
This should just be (something like):
typedef boost::property_map<GraphType, boost::vertex_index_t>::const_type indexMapType;
indexMapType indexMap(get(boost::vertex_index, graph));
boost::iterator_property_map<std::vector<float>::iterator, indexMapType> myMap(vertexData.begin(), indexMap);
// grid_graph_index_map is internal
Thanks, that seems to do it. For posterity: http://programmingexamples.net/wiki/CPP/Boost/BGL/GridGraphProperties David