public Iterable<Integer> getVertex() { Set<Integer> vertex = new HashSet<>(); demands.forEach( d -> { vertex.add(d.getOrig()); vertex.add(d.getDest()); }); return vertex; }
public void recover() { demands.forEach(d -> d.setServe(false)); }