Bryan Olson wrote: > The usual tools to deal with partial orderings are directed acyclic graphs, > and "topological sorting". Try Googling the terms along with "Python". here's a rather powerful timbot implementation: http://mail.python.org/pipermail/python-list/1999-July/006625.html </F>