pub fn write<W, G>(w: W, instance: &Instance<G>) -> Result<()>where W: Write, G: IndexDigraph,
Write a min-cost-flow instance.