10 Oct
2005
10 Oct
'05
2:26 p.m.
On Oct 9, 2005, at 9:56 AM, Giulio Veronesi wrote:
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
> 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?
It is correct for adjacency_list when vertex_listS = vecS. In the more general case, one would write: graph_traits<TGraph>::vertices_size_type idx = get(vertex_index, graph, vertex); Doug