Skip to content

awhanray-05/Dijkstra-Algorithm-Visualizer-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Dijkstra Algorithm Visualizer

✨ Overview

The Dijkstra Algorithm Visualizer is an interactive Python-based tool that graphically demonstrates Dijkstra's shortest path algorithm in action. It allows users to input start and end nodes dynamically, visualize weighted graph traversal, and understand the shortest path computation in real-time with a clean and aesthetically pleasing interface.


πŸ› οΈ Key Features

  • Interactive Inputs:
    Users can specify the start and end nodes interactively using input boxes.
  • Real-Time Visualization:
    Watch the algorithm step through, dynamically updating the graph and highlighting the shortest path.
  • Custom Design:
    • Enhanced visuals with vibrant colors and a clear layout for nodes and edges.
    • Semi-transparent labels for edge weights.
    • Intuitive panel for displaying the shortest path and distance details.
  • Node and Edge Setup:
    • Predefined graph with labeled nodes (A-F) and weighted edges for experimentation.
    • Automatic updates for paths and distances when input changes.

πŸ“š Learning Opportunity

This project provides an excellent way to bridge the gap between theory and implementation, making it ideal for computer science students and enthusiasts seeking a hands-on learning experience with graph algorithms.


πŸ‘¨β€πŸ’» Tech Stack

  • Language: Python
  • Libraries: Pygame (for graphics and interactive interface).

πŸš€ How It Works

  1. Input Nodes: Specify start and end nodes via input boxes.
  2. Watch the Magic: The algorithm computes the shortest path dynamically, which is highlighted along with the distance.
  3. Enhanced Visuals: Enjoy a well-structured graph with color-coded paths, nodes, and interactive feedback.

πŸ’» Installation & Usage

  1. Clone the repository:
    git clone https://github.com/your-repo/dijkstra-visualizer.git
    cd dijkstra-visualizer

About

Dijkstra Algorithm Visualizer built using Python, Pygame (for graphics and interactive interface)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages