Flow networks