I have two structs containing some fields: struct MyNodeData, and struct MyEdgeData. When I create a graph with VertexList as vecS, there is no problem to access the descriptor
Currently, you just need to provide an associative property map.
<...>
typedef Graph::vertex_descriptor NodeID;
typedef map IndexMap;
IndexMap mapIndex;
associative_property_map propmapIndex(mapIndex);
<...>
// indexing all vertices
int i=0;
BGL_FORALL_VERTICES(v, g, Graph)
{
put(propmapIndex, v, i++);
}