FlowNetwork should be a concrete class. Removing references to IFlowNetwork.