3 2 2 1 2 4 2 3 5 3
428571
In this example, there is only one path from 1 to N. Its flow is min(3,4)=3 and its cost is 2+5=7.