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 ; }
Create connections between a single switch and multiple nodes