• Algorithm to solve this task

Question related to mission Break Rings

 

Hi everyone! I'm wandering if there is some actual algorithm to solve this task without brute-forcing. I mean, sure, if it works it ain't stupid, but still. I was trying to find a proper solution, but the only thing I stumble upon is just removing the ring with the biggest number of connections, which was proven to be wrong.