Skip to content

feat(app.py): show result of path using both algorithms#43

Merged
ChronoInferna merged 1 commit intomainfrom
frontend
Nov 4, 2025
Merged

feat(app.py): show result of path using both algorithms#43
ChronoInferna merged 1 commit intomainfrom
frontend

Conversation

@ChronoInferna
Copy link
Copy Markdown
Owner

This pull request adds support for comparing two different pathfinding algorithms—Dijkstra's algorithm and Breadth-First Search (BFS)—in both the backend and frontend of the application. Users can now see the results from both algorithms when searching for routes between airports.

Backend enhancements:

  • Added the bfs algorithm import and invocation alongside djikstra in both waypoint/main.py and web/app.py, allowing both algorithms to be run and compared for the same airport pair. [1] [2]
  • Updated the API response in the /process route to return results for both algorithms, including their respective flight paths and total travel times.

Frontend improvements:

  • Modified web/static/script.js to display the routes and travel times found by both Dijkstra's and BFS algorithms, making it clear to the user how each algorithm performed.

CLI demonstration:

  • Enhanced the main() function in waypoint/main.py to print out the paths and travel times for both algorithms for a sample route, aiding in debugging and demonstration.

@ChronoInferna ChronoInferna merged commit d171c67 into main Nov 4, 2025
2 checks passed
@ChronoInferna ChronoInferna deleted the frontend branch November 4, 2025 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant