Code for evaluating different overcapacity prices.
Function for computing all possible topological orderings adhering to precedence relation.