We need to be able to generate an ordering for _any_ DAG, not just for a DAG with a given root.