Answer
We can use a graph to model the connecting relationships in the floor plan.
Work Step by Step
We can use a graph to model the connecting relationships in the floor plan. The vertices represent the rooms and the outside, and the edges represent connecting doors.