[Lemon-user] Reverse Iterator
Martin Clauß
martin at dev2day.de
Sat Sep 17 14:10:06 CEST 2011
Hello!
I have a minor problem and do not no whether there is a class or
function to solve it.
I want to iterate through all nodes using NodeIt from g.id(node) == 0 to
g.id(node) == g.countNodes() - 1. With the current implementation I get
the reversed order (i.e. g.id(node) = NUMBER_OF_NODES - 1,
NUMBER_OF_NODES - 2, ..., 2, 1, 0).
Is there a simple solution to iterate backwards (i.e. g.id(node) = 0, 1,
2, ...) through all nodes?
Thank you very much for your time!
Martin
More information about the Lemon-user
mailing list