Route Access Problem with Procedural Level Generation (Bad North like WFC)

Hello all,

I’m recently creating a top-down roguelike game with my friend. And I decided to use WFC to generate each level when player enters the level. The game is a Cyberpunk background game so all fights happen in different levels of a huge building. So the generated levels should look like some future offices with open spaces, labs and some meeting rooms.

Here is the problem: I’ve managed to create the function and generate the rooms based on compatible edges. The problem is how can I make sure each of the room I generated has one and only one door so the player can enter?