How monadewidar/theseus-a-graph-traversal-maze-solver works
Theseus is a desktop, interactive maze-search visualizer. A user generates or edits a weighted grid, selects BFS, DFS, Dijkstra, or A*, and watches the search advance step by step; the app also reports search statistics and can compare all four algorithms. The graph separates interaction, maze modeling, generation, and search. Several UI details and the search setup are in unsampled portions of main.py, so those links rely on the README’s product description rather than inspected call sites.
Main entry points: main.py Application controller · Algorithms.py Search algorithms · Grid.py Grid and cells · Maze_Generation.py Maze carving
Components 11
Desktop interaction
- Application controller
main.py - Maze editing
main.py - Search animation
main.py - Search statistics
main.py - Algorithm comparison
main.py
Maze model
- Grid and cells
Grid.py
Maze generation
- Maze carving
Maze_Generation.py - Weight placement
Maze_Generation.py
Path search
- Search algorithms
Algorithms.py - Path cost
Algorithms.py
Other components
- Maze solver user
Connections 16
- Maze solver user → Application controller: operates
README.md - Application controller → Maze carving: generates maze
main.py - Application controller → Weight placement: adds weights
main.py - Application controller → Grid and cells: manages grid
main.py - Application controller → Maze editing: edits maze
README.md - Application controller → Search animation: advances search
main.py - Application controller → Search algorithms: runs searches
README.md - Application controller → Algorithm comparison: compares algorithms
README.md - Search animation → Search statistics: reports progress
README.md - Algorithm comparison → Search algorithms: runs each
main.py - Algorithm comparison → Search statistics: reports results
README.md - Maze carving → Grid and cells: carves cells
Maze_Generation.py - Weight placement → Grid and cells: sets cell costs
Maze_Generation.py - Search algorithms → Grid and cells: reads neighbors
Algorithms.py - Search algorithms → Path cost: reconstructs path
Algorithms.py - Application controller → Path cost: calculates path cost
README.md