Under full substitutability of preferences, it is known that a competitive equilibrium exists in trading networks, and is equivalent to (chain) stable outcomes. In this paper, we formulate the problem of finding an efficient outcome as a generalized submodular flow problem on a suitable network....