Subject: Re: [Boost-users] grid_graph vertex properties
From: David Doria (daviddoria_at_[hidden])
Date: 2012-01-23 15:04:06


> 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