I caught my girlfriend cheating on me with my best friend. How can I make sure our friendship isn’t damaged?

I found out just yesterday that my girlfriend has been cheating on me with my best friend. I’m extremely disappointed in her and I’m breaking up with her. How do I make sure the friendship between my best friend and I isn’t ruined?