layout and design of flow networks