Flows and matchings in graphs