Reducing a network of bilateral intercompany balances to the smallest set of settlement payments.
Graph reduction or linear programming over the bilateral balance network
networkx; PuLP