What is the primary purpose of implementing a spanning tree protocol in a network?
To expand network coverage area
To prevent switching loops in a broadcast domain
To manage collision domains within the network
To improve network performance by selecting the fastest paths