Perhaps my pic was too messy. In my pic, when lines crosses have an arc, it means they are bridges (they are not connected). Only when they have a full red circle, it means they are connected.
Finally got it to work. No clue as to what the logic is, but it worked!
Thank you @EvilCleric. Wouldn’t have even gotten close without your help/extreme patience :'D