This project is an interactive web application for visualizing and learning about graph algorithms. It allows users to explore different graph algorithms, such as Breadth-First Search (BFS), Depth-First Search (DFS), and Dijkstra's Algorithm, on randomly generated graphs.
- Interactive graph visualization
- Multiple algorithm implementations
- Step-by-step algorithm execution
- Next.js
- React
- TypeScript
- Recharts for data visualization
- Tailwind CSS for styling
- Node.js (v14 or later)
- npm (v6 or later)
-
Clone the repository:
git clone https://github.com/yourusername/graph-algorithm-viz.git cd graph-algorithm-viz
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:3000
- Select an algorithm from the dropdown menu
- Click on two nodes in the graph to set the start and end points
- Click "Run Algorithm" to visualize the algorithm's execution
- Use "Reset Selection" to clear the current selection and try again
Contributions are welcome! Please feel free to submit a Pull Request.