Skip to content

Interactive BFS/DFS visualizer with step-by-step animations and path finding. Perfect for learning graph algorithms!

Notifications You must be signed in to change notification settings

mazen-alasas/GraphTraversal-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧠 GraphTraversal Visualizer

(Interactive BFS/DFS Algorithm Explorer)

A visual tool demonstrating graph traversal algorithms in action. This web application helps users understand Breadth-First Search (BFS) and Depth-First Search (DFS) algorithms through interactive visualizations. Create custom graphs and watch the algorithms explore nodes in real-time with step-by-step animations.

🎥 Watch the demo on YouTube

image

🚀 Technologies Used

  • Python (Flask backend)
  • JavaScript
  • NetworkX (Graph processing)
  • HTML5/CSS3 (Responsive UI)

📦 Getting Started

Follow the steps below to run the project locally:

1. Clone the repository

git clone https://github.com/mazen-alasas/GraphTraversal-Visualizer.git
cd GraphTraversal-Visualizer

2. Create a virtual environment

python -m venv venv

3. Activate the virtual environment

On Windows CMD:

venv\Scripts\activate

On Windows PowerShell:

.\venv\Scripts\Activate.ps1

4. Install dependencies

pip install -r requirements.txt

5. Run the simulation

python run.py

Note: Make sure you're running the command from the root directory where run.py is located.

🗂️ Project Structure

graph-visualizer/
├── app/
│   ├── 📂 algorithms/
│   │   ├── __init__.py
│   │   ├── bfs.py
│   │   └── dfs.py
│   ├── 📂 static/
│   │   ├── 📂 css/
│   │   │   └── style.css
│   │   └── 📂 js/
│   │       └── script.js
│   ├── __init__.py
│   └── routes.py
├── 📂 templates/
│   └── index.html
├── README.md
├── data.txt
├── requirements.txt
└── run.py

👨‍💻 Collaborators


Mazen Alasas

Ahmed Ismail

💡 Project Goal

To create an intuitive educational tool that makes abstract graph algorithms tangible through visualization, helping students and developers grasp traversal concepts faster.

Contact

Feel free to reach out!

LinkedIn YouTube

About

Interactive BFS/DFS visualizer with step-by-step animations and path finding. Perfect for learning graph algorithms!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published