Diagram "spaghetti"

How can i create diagram “spaghetti”? I need to connect several rooms of the central line. How to draw it ? It is necessary to connect the doors with the line. Next problem is that the rooms come in different shapes.