1 #include <seqan/index.h> 2 3 using namespace seqan; 4 main()5int main() 6 { 7 typedef Index<CharString> TIndex; 8 9 TIndex index("tobeornottobe"); 10 Iterator<TIndex, TopDown<ParentLinks<> > >::Type it(index); 11 12 do 13 { 14 // Print the letters from the root to the current node 15 std::cout << representative(it) << std::endl; 16 17 if (!goDown(it) && !goRight(it)) 18 while (goUp(it) && !goRight(it)) 19 ; 20 } 21 while (!isRoot(it)); 22 23 return 0; 24 } 25