As with the Seven Bridges of Königsberg, the puzzle may be represented in graphical form with each room corresponding to a vertex (including the outside area as a room) and two vertices joined by an edge if the rooms have a common wall.
Similar to the Seven Bridges of Königsberg, the puzzle can be depicted visually using a graph. Each room is a vertex, including the exterior space as a room, and edges connect vertices when they share a wall.