Boost logo

Boost Users :

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


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