Preparing the FlowNetwork