2006/06/21
This post is really just a memory-aid to myself, as I don't quite know where to save this snippet so that I could always find it again. I used it to generate the FULL Iconclass tree including all Keys and Structural digits for every node. Very interesting results, as it made a file with 2.1 million entries. Put that in your pipe and smoke it!
def walk(n):
yield n
for typ, x in II.get_children(n):
for y in walk(x):
yield y
