A mesh topology in computer networking establishes a complete interconnection between all devices. Consequently, each device must have a direct link to every other device. With n devices in the network, each device necessitates connections to n-1 other devices, requiring n-1 ports per device.
The following briefly describes the topologies presented in the options:
Thus, in a mesh topology, with n devices, the requirement for each device to connect to n-1 other devices aligns with the specified condition.