How to retrieve the bundled property map of a compressed_sparse_row_graph

I need to get the bundled property map with a key_type of the
vertex_descriptor and a value_type of the bundled vertex property type from
a compressed_sparse_row_graph by get(vertex_bundle, g), but it failed. It
works when the graph is an adjacency_list.
1 #include <iostream>
2 #include <string>
3 #include

On Tue, 30 Mar 2010, 吴焱 wrote:
I need to get the bundled property map with a key_type of the vertex_descriptor and a value_type of the bundled vertex property type from a compressed_sparse_row_graph by get(vertex_bundle, g), but it failed. It works when the graph is an adjacency_list.
That was a bug in the CSR graph implementation; it didn't expose the vertex_bundle and edge_bundle property maps (only individual elements using the [] syntax on the graph). The version in SVN trunk should have this fixed now. -- Jeremiah Willcock
participants (2)
-
Jeremiah Willcock
-
吴焱