| Roger Dearnaley For sure we should find a better performing algorithm. For the moment, I have only focused on correctness and having an exhaustive suite of tests to cover all use cases. When I have some time, I could investigate a more efficient solution. If you want, you can try to optimize it and send a Pull Request that implements the Topological sorting algorithm. |