rh0dium <[EMAIL PROTECTED]> writes: > I am really struggling on simply how to organize the data and write > the corresponding function - I tried classes but I don't know if > that's the best approach. See my other post on this.
We just had a discussion thread about this. Is it a homework problem? Anyway, look up "topological sorting" in a CS textbook or on Wikipedia. -- http://mail.python.org/mailman/listinfo/python-list