
9 Oct
2005
9 Oct
'05
2:56 p.m.
Hi, How do I access the vertex_index property of a vertex? Is it necessary to use the get function? More precisaly, let us consider the following: typedef adjacency_list<vecS, vecS, bidirectionalS, no_property, property<edge_weight_t, int> > TGraph; typedef graph_traits<TGraph>::vertex_descriptor TNode; Suppose that 'vertex' is a TNode. Is it correct to do int idx = vertex; to get in idx the vertex_index of vertex? Thanks in adavnce, Giulio