The Network Flow of the optimal arrangement