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