/graph-algorithm-visualiser

A visualiser which displays the process of graph algorithms on complete graphs such as: Prim's, Kruskal's, Graham Scan, Nearest Neighbour and 2-Opt. The project was primarily a learning tool to help me improve my ability using JavaScript and better understand graph algorithms.

Primary LanguageSCSSApache License 2.0Apache-2.0

Graph Algorithm Visualiser

Website Badge

Web application which visualises the process of various graph algorithms on randomised nodes. The application can simulate Prim's and Kruskal's algorithm for constructing minimum spanning trees, Graham scan to construct convex hulls, Greedy algorithm to construct minimal matchings, and Nearest neighbour with 2-Opt to create Hamiltonian cycles.

Algorithms

  • Graham Scan - Convex Hull
  • Prim's - Minimum Spanning Tree
  • Kruskal's - Minimum Spanning Tree
  • Greedy - Minimal Matching
  • Nearest Neighbour - Hamiltonian Path
  • Nearest Neighbour with 2-Opt - Hamiltonian Path
  • Random Tour - Hamiltonian Path

Screenshot

2022-10-01-224238_1920x1080_scrot