How whitenessly/hamilton_trr2 works
Hamilton Simulator is a browser-based learning tool for building graphs and exploring Hamiltonian-path searches. Its main workflow is handled in one large Home route: users edit a graph, run or step through a search, and inspect the visualization and progress. The README also documents fast search, dark/light mode, and responsive sidebars. The sampled source shows routing and parts of the search and interface, but not the full graph-editing or simulation implementation; those capabilities are represented at the Home module level.
Main entry points: Home.jsx Simulator workspace · App.jsx Route selection · main.jsx Browser entry · NotFound.jsx Not-found page
Components 12
App routing
- Browser entry
src/main.jsx - Route selection
src/App.jsx - Not-found page
src/routes/NotFound.jsx
Graph workspace
- Simulator workspace
src/routes/Home.jsx - Graph builder
src/routes/Home.jsx
Hamilton search
- Path search
src/routes/Home.jsx - Fast search
src/routes/Home.jsx - Step controls
src/routes/Home.jsx
Display and controls
- Search visualization
src/routes/Home.jsx - Progress log
src/routes/Home.jsx - Theme and layout
src/routes/Home.jsx
Other components
- Learner
Connections 13
- Learner → Browser entry: opens app
README.md - Browser entry → Route selection: renders
src/main.jsx - Route selection → Simulator workspace: routes /home
src/App.jsx - Route selection → Not-found page: routes fallback
src/App.jsx - Learner → Simulator workspace: uses simulator
README.md - Simulator workspace → Graph builder: builds graphs
README.md - Simulator workspace → Path search: runs search
README.md - Simulator workspace → Fast search: offers fast search
src/routes/Home.jsx - Simulator workspace → Step controls: controls search
src/routes/Home.jsx - Simulator workspace → Search visualization: visualizes search
README.md - Simulator workspace → Progress log: shows progress
src/routes/Home.jsx - Simulator workspace → Theme and layout: offers display controls
src/routes/Home.jsx - Not-found page → Simulator workspace: links home
src/routes/NotFound.jsx