Arranging a dependency tree

Mike C. Fletcher mcfletch at
Thu Aug 12 08:32:05 CEST 2004

Bryan Olson wrote:

> If you want an ordering in which each module follows the
> modules on which it depends, you want a 'topological sort' based
> on the depends relation.

There's a module here:
which provides two implementations of topological sorting in Python.  
With that, should be a trivial task to do a dependency sort on the OP's 


  Mike C. Fletcher
  Designer, VR Plumber, Coder

More information about the Python-list mailing list