generalization of network flow problems
Circulation problem