in reply to Partial sort for dependency graph

im having a hard time visualizing your intent. could you provide some examples? maybe some code?