DijkstraVerse

Interactive educational platform for learning and visualizing graph algorithms.

ViteFastAPILLM
CodeOffline
DijkstraVerse

Overview

DijkstraVerse is an interactive learning tool that helps students understand graph algorithms through step-by-step visualization. Users can build custom graphs by placing nodes and edges on a canvas, then watch algorithms like Dijkstra's, BFS, DFS, and A* execute in real time with animated path highlighting and a step-by-step explanation panel. The platform also integrates an LLM-powered assistant that can explain algorithm concepts, answer questions about the current graph state, and generate practice problems. Built with a Vite + React frontend and a FastAPI backend for the AI features.

Architecture

React frontend with HTML5 Canvas for graph rendering and algorithm animation. FastAPI backend serving the LLM integration for the AI tutor feature. The graph data structure is managed client-side with an adjacency list representation, and algorithm execution is done in web workers to keep animations smooth without blocking the main thread.

Engineering Challenges

  • 1Rendering smooth, performant graph animations on HTML5 Canvas while handling dynamic node/edge creation and deletion.
  • 2Implementing algorithm step-by-step execution with pause, resume, and speed controls — required decoupling the algorithm logic from the rendering loop.
  • 3Integrating an LLM that can reason about the current graph state — serializing the graph into a prompt-friendly format and parsing structured responses for the UI.

Stack

ViteFastAPILLM