code: public List<Link> connect(int bandwidth, Switch sw, Node... nodes) {
          List<Link> l = new ArrayList<>();
          for (Node n : nodes) {
              l.add(connect(bandwidth, sw, n));
          }
          return l;
      }
docs: Create connections between a single switch and multiple nodes
  
  @param bandwidth the maximal bandwidth for the connection
  @param sw        the switch to connect
  @param nodes     a list of nodes to connect
  @return a list of links