code: public Link connect(int id, int bandwidth, Switch sw, PhysicalElement pe) {
          // Create a new link with a specific id
          Link link = lnBuilder.newLink(id, bandwidth, sw, pe);
          links.add(link);
          return link;
      }
docs: Create a new link first with a specific identifier and a given maximal capacity (or bandwidth),
  then connect the link between the given switch and physical element.
  
  @param id        the new link identifier
  @param bandwidth the maximal bandwidth for the connection
  @param sw        the switch to connect
  @param pe        the physical element to connect
  @return the generated link that connects both elements