qwertydaz / dijkstras-animation

An interactive animation to teach Dijkstra's shortest path algorithm

Repository from Github https://github.comqwertydaz/dijkstras-animationRepository from Github https://github.comqwertydaz/dijkstras-animation

Final Year Project - Dijkstra's Animation

This is my code for my final year project.

How to run

  1. Clone the repository
  2. Download the dependencies
  3. Use the specified VM options

Dependencies

  1. JDK 15.0.2
  2. JavaFX 19
  3. MySQL Connector 8.0.31

VM Options

--module-path {pathToFolder}\openjfx-19_windows-x64_bin-sdk\javafx-sdk-19\lib --add-modules=javafx.controls

MySQL Database

This program uses MySQL to save and load graphs. If you want this functionality to work, you will need to set up a database and a CSV file.

Create a file called "database_details.csv" in the following directory:

./src/resources/database_details.csv

The CSV file should contain the connection details. It must be formatted as follows:

{url},{username},{password}

About

An interactive animation to teach Dijkstra's shortest path algorithm


Languages

Language:Java 99.7%Language:CSS 0.3%