Boost logo

Boost Users :

From: Giulio Veronesi (giulio_veronesi_at_[hidden])
Date: 2005-10-09 09:56:45


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net