all solutions for topsort in top.py