21 Sep
2005
21 Sep
'05
12:02 p.m.
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
6993
Age (days ago)
6993
Last active (days ago)
0 comments
1 participants
participants (1)
-
Giulio Veronesi