Shortest path problem cont. # Example from mock final # the dummy line is to balance the supply/demand The runtime complexity of this method is \( O(2^n) \) , there are some faster methods: