very cool. @nwjsmith could you share your code for the graph or topological-ordering?
@ghadi I'll try to get a repo up tonight or tomorrow, they should be fairly general-purpose. I'll ping you here when it's up