Design of connection networks with bounded number of non-terminal vertices