use network simplex in emd flow