compute and export the network flows (fx)