alt : http://old-courses.cn.ntua.gr/file.php/33/ch2_graphsandflows_v3.pdf