It's fairly easy, and the solution is... Just connect everything, without any lines leading to no-where.