31 May
2012
31 May
'12
6:14 p.m.
On 31.05.2012 22:09, Jeremiah Willcock wrote:
On Thu, 31 May 2012, Sergey Mitsyn wrote:
Hello,
Thanks for the reply!
Yes, that should work. Rather than using vertices(graph).first + vi_index, use vertex(vi_index, graph);
I thought about that, but vertex(vi_index, graph) returns vertex_descriptor, not vertex_iterator. Actually that works, but I think it does so only because they have incidentally happened to be the related types :).
Do you need the iterators themselves, and not just the descriptors?
Clarification: descriptors are enough if I stick to the for loop code you provided. ------------ Sergey Mitsyn.