Recalculating the roots tuple every iteration could be very expensive, so instead let's do a topological sort.
6.1 KiB
6.1 KiB
Recalculating the roots tuple every iteration could be very expensive, so instead let's do a topological sort.