A graphical user interface (GUI) application developed using Pygame to visualize Dijkstra's Algorithm for finding the shortest path between nodes in a graph. Users can interactively create nodes, connect them with edges, and visualize the pathfinding process.
- Node Placement: Click to place nodes.
- Node Connection: Right-click to create edges between nodes.
- Pathfinding: Double-click on two nodes to visualize the shortest path.
- Node Deletion: Press space and click to delete a node.
- Graph Reset: Middle click to reset the graph.
-
Placing and Connecting Nodes
-
Finding Shortest Path
-
Complex Graph Configuration
-
Solved Path in a Complex Graph
-
Simple Pathfinding Example
- Python 3.8 or above
- Pygame
- Numpy
Clone the repository and install the required packages:
git clone https://github.com/your-username/Dijkstra-Path.git
cd Dijkstra-Path
pip install pygame numpy