Each room in the maze has exits north, south, east and west, some of which loop back to the room you are already in. To simplify the map these loopback exists are not shown.
b 1 (entrance)
| /
|v
(exit) 1 a b a
^ ^ ^ |
\| | v
a-<--+----+----b-->-a
| v v
a b a