Report question

Question: Algorithm to simplify a weighted directed graph of debts