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