code: public static List<Offline> newOffline(Collection<Node> nodes) {
          return nodes.stream().map(Offline::new).collect(Collectors.toList());
      }
docs: Instantiate discrete constraints for a collection of nodes.
  
  @param nodes the nodes to integrate
  @return the associated list of constraints