Mazes Produced by Random Spanning Trees

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

This Demonstration shows three steps in creating a maze.


1. Choose the size of the maze. The maze is represented as a random spanning tree of a grid graph.

2. The maze's appearance is enhanced by enlarging the thickness of the edges and coloring them black against a blue background.

3. Finally, you can choose the starting and ending points of the desired shortest path.


Contributed by: Jaime Rangel-Mondragon (February 2015)
Open content licensed under CC BY-NC-SA




Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.