
On Thu, 15 Apr 2010, nguyen vu tri wrote:
Hi everyone, I really need help to figure out the following problem. -------------------------------------------------------------------------------- First, I create a Vertex Property: typedef property < vertex_index_t, int> VertexProperties;
Then, I create an adjacency graph type: typedef adjacency_list < vecS, vecS, directedS, VertexProperties > Graph;
Now I can call: VertexProperties V1;
--------------------------------------------------------------------------------- My question is: Is there anyway that I can access *VertexProperties *through * Graph* to create the same variable *V1* ?.
What would you need that for? boost::property doesn't have any members -- it's just a tag saying which properties to generate. Did you want the vertex_index property map instead? In that case, do: property_map<Graph, vertex_index_t> pm(get(vertex_index, g)); -- Jeremiah Willcock