
11 May
2012
11 May
'12
8:46 p.m.
Hi, I’ve implemented a graph that’s quite similar to adjacency_list. get(get(vertex_index, g), u) works as expected, but get(vertex_index, g, u) does not work. Is their a default implementation in boost/graph somewhere that translates the latter call to the first, or does my graph have to implement the following function? template <typename Tag, typename Key> typename property_map_value<MyGraph, Tag>::type get(Tag tag, const MyGraph& g, Key key) { return get(get(tag, g), key); } When I include this implementation, the get(tag, g, u) call works as expected. Cheers, Shaun