topological order with support for parallel running