Boost logo

Boost Users :

From: Giulio Veronesi (giulio_veronesi_at_[hidden])
Date: 2005-09-21 07:02:26


Hi,

I'd like to extract the source and target vertex id from an
edge_descriptor without using the graph that contains the edge. More
specifically, consider the following code:

typedef graph_traits<MyGraph>::edge_descriptor MyLink;

void MyFunction(MyLink& link)
{
        cout << "source vertex id: " << ??? << ", target vertex id: " << ??? <<
endl;
}

What I've to put at place of ??? to print the source and target vertex
id? Is it a dirty solution to use the m_source and m_target field of the
edge_descriptor structure?

Thanks,
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