This React project, built with Vite and TypeScript, provides an interactive tool for calculating optimal routes using Dijkstra's algorithm. It efficiently determines the shortest paths between nodes in a graph.
Demo URL: https://curious-halva-9294ed.netlify.app
- Calculate the shortest path between selected two nodes in a Graph.
- Display the traversed path and its total distance.
-
Prerequisites: Ensure you have Node.js (version 18.00 or later) and npm (version 5.6 or later) installed on your system. You can verify these by running
node -vandnpm -vin your terminal. -
Clone the Repository: Open your terminal and navigate to the desired directory using
cd. Then, clone this repository using the following command:git clone https://github.com/kelumdev/shortest-path-calculator
-
Install Dependencies:
npm install -
Run the Project:
npm run dev
- in a different terminal,
npm run testruns all the tests
