Oh, sorry ! Beware when you write the reverse dictionary, for the
order of the vertices in vertex_iterator may not be the same as the
one returned by vertices() !!!
> Well, I "need" it for Tuesday. ;-) But not desperately. Would the
> backends for graphs easily/efficiently support something like
> G.index(u) to get the integer behind a vertex u quickly and
> easily? It seems this would be useful for all the places where the
> code assumes vertices are integers (or at least ordered).
Well, they already do this at Cython level, but I guess they do it the
same way --> with a reverse dictionary. Recently I have spent some
time over the Graph backend and I guess I will have several patches to
write there... Especially because we now have iterators in Cython :-)
Nathann